Print dst, offset, and timezone name for the "act" timezone:
<?php
$tzlist = DateTimeZone::listAbbreviations();
print_r($tzlist["acst"]);
?>
Try it Yourself »
The timezone_abbreviations_list() returns an associative array containing dst, offset, and the timezone name.
timezone_abbreviations_list()
Return Value: | Returns an associative array on success. FALSE on failure |
---|---|
PHP Version: | 5.2+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!