- microtime: documentation ( source)
- date: documentation ( source)
- number_format: documentation ( source)
<?php
$now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(date('T')));
echo $now->format("Ymd H:i:s");