This is my current PHP program:
$dateStamp = $_SERVER['REQUEST_TIME'];
which I record later.
As a result, the $dateStamp variable contains numbers like:
1385615749
This is a Unix timestamp, but I want it to contain a human-readable date with hours, minutes, seconds, date, months, and years.
Therefore, I need a function that converts it into a human-readable date.
How can I do it?
There are other similar questions, but not quite so. I want the simplest possible solution.
source share