PHP 教程 PHP timezone_abbreviations_list() 函数

allison · 2022-03-07 10:55:43 · 热度: 6

实例

输出 "act" 时区的夏令时、偏移量和时区名称:

<?php
$tzlist=timezone_abbreviations_list();
print_r($tzlist["act"]);
?>

定义和用法

timezone_abbreviations_list() 返回包含夏令时、偏移量和时区名称的关联数组。

语法

timezone_abbreviations_list();

技术细节

返回值: 成功则返回一个关联数组,失败则返回 FALSE。
PHP 版本: 5.2+

查看更多 PHP Date/Time 函数

猜你喜欢:
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册