timezone_abbreviations_list

Its an alias of DateTimeZone::listAbbreviations()and returns associative array containing dst, offset and the timezone name
Example

<?php
echo “<pre>”;
$timezone = timezone_abbreviations_list();
print_r($timezone[‘admt’]);
?>

Output

Array
(
[0] => Array
(
[dst] =>
[offset] => 9320
[timezone_id] => Africa/Addis_Ababa
)

[1] => Array
(
[dst] =>
[offset] => 9320
[timezone_id] => Africa/Asmara
)

[2] => Array
(
[dst] =>
[offset] => 9320
[timezone_id] => Africa/Asmera
)

)

Share