PHP timezone_abbreviations_list() Function
Example
Print dst, offset, and timezone name for the "act" timezone:
<?php
$tzlist=timezone_abbreviations_list();
print_r($tzlist["act"]);
?>
Run example »
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