PHP timezone_abbreviations_list()関数
例
「act」タイムゾーンのdst、offset、およびタイムゾーン名を出力します。
<?php
$tzlist = DateTimeZone::listAbbreviations();
print_r($tzlist["acst"]);
?>
定義と使用法
timezone_abbreviations_list()は、dst、offset、およびタイムゾーン名を含む連想配列を返します。
構文
timezone_abbreviations_list()
技術的な詳細
戻り値: | 成功すると連想配列を返します。失敗するとFALSE |
---|---|
PHPバージョン: | 5.2+ |
❮PHPの日付/時刻リファレンス