title: How to format a Unix timestamp in Delphi?
body: <p>I have </p>
  
  <pre><code>var timestamp: Longint;  
  timestamp := Round((Now() - 25569.0 {Unix start date in Delphi terms} ) * 86400);
  </code></pre>
  
  <p>which I am using as a primary key in some MySql stuff.</p>
  
  <p>But I would also like to format the date/time, like <a href="http://php.net/manual/en/function.date.php">PHP's date() function</a> does.</p>
  
  <p>Does anyone have a code snippet or URL?</p>