title: How to create human readable time stamp?
body: <p>In my PHP program, I'm using <a href="https://www.php.net/manual/en/reserved.variables.server.php" rel="nofollow noreferrer"><code>$_SERVER</code></a> to log the page's date visited:</p>
  <pre><code>$dateStamp = $_SERVER['REQUEST_TIME'];
  </code></pre>
  <p>The result is that the <code>$dateStamp</code> variable contains a <a href="https://wikipedia.org/wiki/Unix_time" rel="nofollow noreferrer">Unix timestamp</a> like:</p>
  <pre><code>1385615749
  </code></pre>
  <p>What's the simplest way to convert it into a human-readable date/time (with year, month, day, hour, minutes, seconds)?</p>