PHP timezone_location_get()関数
例
指定されたタイムゾーンの位置情報を返します。
<?php
$tz=timezone_open("Asia/Taipei");
print_r(timezone_location_get($tz));
?>
定義と使用法
timezone_location_get()は、指定されたタイムゾーンの位置情報を返します。
構文
timezone_location_get(object)
パラメータ値
Parameter | Description |
---|---|
object | Required. Specifies a DateTimeZone object returned by timezone_open() |
技術的な詳細
戻り値: | タイムゾーンの位置情報を含む配列を返します |
---|---|
PHPバージョン: | 5.3+ |
❮PHPの日付/時刻リファレンス