create DateTime from timestamp php

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

Also in PHP: