getTimestamp
suggest changegetTimeStemp
is a unix representation of a datetime object.
$date = new DateTime();
echo $date->getTimestamp();
this will out put an integer indication the seconds that have elapsed since 00:00:00 UTC, Thursday, 1 January 1970.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents