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