datetime php create from timestamp

PHP
$date = new DateTime();
echo $date->getTimestamp();
Source

Also in PHP: