- date: documentation ( source)
- strtotime: documentation ( source)
<?php
//following GMT value or offset get from api
$offsetHours = '-5 hours';
// This time i get from api
$currentValue = '1401705628';
$actualTimeStamp = strtotime($offsetHours,$currentValue);
echo $actualTimeStamp.PHP_EOL;
echo date('h:i A',$actualTimeStamp);