<?php
echo date('m/d/Y H:i:s', 1541843467);
?>
<?php
$timestamp=1333699439;
echo gmdate("Y-m-dTH:i:s", $timestamp);
?>
$currentTime = DateTime::createFromFormat( 'U', $timestamp );
<?php
$date = new DateTime();
echo $date->format('U = Y-m-d H:i:s') . "
";
$date->setTimestamp(1171502725);
echo $date->format('U = Y-m-d H:i:s') . "
";
?>
$unix_timestap = microtime(true);
$date_time = gmdate("Y-m-dTH:i:s", (int)$unix_timestap);