title: How to convert timestamp into date/time string in PHP?
body: <p>I need to construct a <a href="http://www.php.net/manual/en/datetime.construct.php" rel="nofollow">DateTime</a> from an integer Unix timestamp <code>1329272833</code>. The documentation says the constructor needs a "date/time" string like <code>2006-04-12T12:30:00</code>. I manually did my own conversion:</p>
  
  <pre><code>$dateTimeEnd = new DateTime(
      date('Y-m-d\TH-i-s', 1329272833)
  );
  </code></pre>
  
  <p>Does PHP have a built in function to do this conversion?</p>