- date: documentation ( source)
<?php
$utc = new DateTimeZone('UTC');
$amla = new DateTimeZone('America/New_York');
$two_past_midnight = new DateTime('2016-03-12 19:00', $utc);
if ( date('T',$two_past_midnight) == 'EST' ){
echo 'Easter Standard Time';
}
else{
echo "Estern Daylight Time";
}
$two_past_midnight->setTimeZone($amla);
echo $two_past_midnight->format('T');
?>