DateTimeZone::getOffset

It returns the timezone offset from GMT
Example

<?php
$dateTimeZone = new DateTimeZone(‘Australia/Perth’);
echo $dateTimeZone->getOffset(new DateTime(“2000-01-01”, new DateTimezone( ‘GMT’ )));
?>

Output

28800