title: Pulling a timestamp from an XML feed with PHP but seem to be to many digits
body: <p>I am pulling a timestamp from a feed and it gives 12 digits (1269088723811). When I convert it, it comes out as </p>
  
  <p>1901-12-13 20:45:52, </p>
  
  <p>but if I put the timestamp into <a href="http://www.epochconverter.com/" rel="nofollow noreferrer">http://www.epochconverter.com/</a> it comes out as </p>
  
  <p>Sat, 20 Mar 2010 12:38:43 GMT, which is the correct time. </p>
  
  <p>epochconverter.com mentions that it maybe in milliseconds so I have amended the script to take care of it using </p>
  
  <p><code>
  $mil = $timestamp;<br>
  $seconds = $mil / 1000;<br>
  $date = date('Y-m-d H:i:s', date($seconds));
  </code></p>
  
  <p>but it still converts the date wrong, 1970-01-25 20:31:23.</p>
  
  <p>What am I doing wrong?</p>