3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //following GMT value or offset get from api $offsetHours = '-5 hour'; // This time i get from api $currentValue = '1401705628'; $actualTimeStamp = strtotime($offsetHours,$currentValue); echo $actualTimeStamp."==="; echo date('h:i A',$actualTimeStamp);