PHP timezone_abbreviations_list() Function
Example
Print dst, offset, and timezone name for the "act" timezone:
<?php
$tzlist = DateTimeZone::listAbbreviations();
print_r($tzlist["acst"]);
?>
Try it Yourself »
Definition and Usage
The timezone_abbreviations_list() returns an associative array containing dst, offset, and the timezone name.
Syntax
timezone_abbreviations_list()
Technical Details
Return Value: | Returns an associative array on success. FALSE on failure |
---|---|
PHP Version: | 5.2+ |
❮ PHP Date/Time Reference