title: Creating DateTime from timestamp in PHP < 5.3
body: <p>How do you create a DateTime from timestamp in versions less than &lt; 5.3?</p>
  
  <p>In 5.3 it would be:</p>
  
  <pre><code>$date = DateTime::createFromFormat('U', $timeStamp);
  </code></pre>
  
  <p>The DateTime constructor wants a string, but this didn't work for me</p>
  
  <pre><code>$date = new DateTime("@$timeStamp");
  </code></pre>