PHP timezone_name_from_abbr()関数
例
省略形からタイムゾーン名を返します。
<?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+ |
❮PHPの日付/時刻リファレンス