TUTORIALBackendFETCHED
PHP timezone_location_get() 函数
PHP timezone_location_get() 函数 PHP Date/Time 参考手册 实例 返回指定时区的位置信息: <?php $tz=timezone_open('Asia/Taipei'); echo timezone_location_get($tz);?> 运行实例 » 定义和用法 timezone_location_get() 返回指定时区..
Updated 7/16/2026
Tutorial detail pages default to noindex.
PHP timezone_location_get() 函数
定义和用法
timezone_location_get() 返回指定时区的位置信息。
语法
timezone_location_get(object);
| 参数 | 描述 |
|---|---|
| object | 必需。规定一个由 timezone_open() 返回的 DateTimeZone 对象。 |
技术细节
| 返回值: | 返回一个包含时区的位置信息的数组。 |
|---|---|
| PHP 版本: | 5.3+ |
PHP Date/Time 参考手册