从缩写返回时区名称:
<?php
echo timezone_name_from_abbr("EST") . "<br>";
echo timezone_name_from_abbr("",7200,0);
?>
亲自试一试 »
timezone_name_from_abbr() 从缩写返回时区名称。
timezone_name_from_abbr(
abbr, gmtoffset, isdst)
Parameter | Description |
---|---|
abbr | Required. Specifies the timezone abbreviation |
gmtoffset | Optional. Specifies the offset from GMT in seconds. Default is -1, which means that first found timezone corresponding to abbr is returned. Otherwise exact offset is searched. If not found, the first timezone with any offset is returned |
isdst | Optional. Specifies daylight saving time indicator.
|
返回值: | 成功时返回时区名称。失败时为 FALSE |
---|---|
PHP 版本: | 5.1.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!