小白教程
所有教程
关于
Search
172.69.7.131
172.69.7.131
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func date timezone name from abbr”的源代码
本页内容
上一节:
Func_date_timezone_location_get
下一节:
Func_date_timezone_name_get
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:timezone_name_from_ abbr()}}[[Category:PHP Date 参考手册|43]] = PHP timezone_name_from_abbr() 函数 = [[:Category:PHP Date 参考手册]] 根据时区缩略语返回时区名称: <sample title="" desc="" lang="php" hererun="1"> <?php echo timezone_name_from_abbr("EST") . "<br>"; echo timezone_name_from_abbr("",7200,0); ?> </sample> == 定义和用法 == timezone_name_from_abbr() 根据时区缩略语返回时区名称。 == 语法 == <pre> timezone_name_from_abbr(abbr,gmtoffset,isdst); </pre> {| class="table table-striped table-hover" !width="50%"| 参数 !width="50%"| 描述 |- | abbr | 必需。规定时区缩略语。 |- | gmtoffset | 可选。规定相对于 GMT 的以秒为单位的偏移量。默认为 -1,表示返回第一个被找到的匹配缩略语的时区。否则搜索精确的偏移量。如果没有找到,则返回任意偏移量的第一个时区。 |- | isdst | 可选。规定夏令时指示器。 * -1 = 默认。搜索时是否考虑时区的夏令时 * 1 = 表示 gmtoffset 是受夏令时影响的一个偏移量 * 0 = 表示 gmtoffset 是不受夏令时影响的一个偏移量 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 成功则返回时区名称,失败则返回 FALSE。 |- | PHP 版本: | 5.1.3+ |} [[:Category:PHP Date 参考手册]]
返回至“
Func date timezone name from abbr
”。
上一节:
Func_date_timezone_location_get
下一节:
Func_date_timezone_name_get