timezone_name_from_abbr() - 语法
timezone_name_from_abbr( $abbr [, $gmtOffset [, $is_dst]] );
此函数从缩写中返回时区名称。
| Sr.No | Parameter & Description |
|---|---|
| 1 |
abbr 必填。时区缩写。 |
| 2 |
gmtOffset 可选。与GMT的偏移量(以秒为单位)。 |
| 3 |
is_dst 可选。夏令时指示器。 |
timezone_name_from_abbr() - 返回值
成功时返回时区名称,失败时返回False。
timezone_name_from_abbr() - 示例
<?php echo timezone_name_from_abbr("CET") . "<br />"; echo timezone_name_from_abbr("", 3600, 0) . "\n"; ?>
这将产生以下输出-
Europe/Berlin Europe/Paris