title: PHP difference between time() and getTimestamp() object [Year 2038 bug]
body: <p>What is the difference between:</p>
  
  <pre><code>$now = time();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$now = new DateTime();
  $now-&gt;getTimestamp();
  </code></pre>
  
  <p>By taking into account the 32-Bit INT limitations (a.k.a year 2038 bug) is it safe to use getTimestamp() in a 32-Bit system ?</p>
  
  <p><strong><em>Edit:</em></strong></p>
  
  <p>For further information about this problem, check this link: <a href="https://stackoverflow.com/questions/20822821/what-is-a-unix-timestamp-and-why-use-it">What is a Unix timestamp and why use it?</a></p>