Display the DST, offset, and timezone name for the “ACT” timezone.
<?php $tzlist = DateTimeZone::listAbbreviations(); print_r($tzlist[“acst”]); ?> |
The timezone_abbreviations_list() function returns an associative array that includes DST, offset, and the timezone name.
timezone_abbreviations_list() |
Return Value: |
Returns an associative array on success or |
PHP Version: |
5.2+ |