PHP DateTime::getOffset April 24, 2012 Pramod T P It returns the timezone offset . Example <?php $time = new DateTime(‘2008-05-17’, new DateTimeZone(‘America/New_York’)); echo $time->getOffset() . “n”; ?> Output -14400