PHP Datetime Class getTimestamp


Example

getTimeStemp 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.