DateTimeZone::listAbbreviations

It returns associative array containing dst, offset and the timezone name
Example

<?php
echo “<pre>”;
$ta = DateTimeZone::listAbbreviations();
print_r($ta[“burt”]);
?>

Output

Array
(
[0] => Array
(
[dst] =>
[offset] => 23400
[timezone_id] => Asia/Kolkata
)

[1] => Array
(
[dst] =>
[offset] => 23400
[timezone_id] => Asia/Calcutta
)

[2] => Array
(
[dst] =>
[offset] => 23400
[timezone_id] => Asia/Dacca
)

[3] => Array
(
[dst] =>
[offset] => 23400
[timezone_id] => Asia/Dhaka
)

[4] => Array
(
[dst] =>
[offset] => 23400
[timezone_id] => Asia/Rangoon
)

)

Share