PHP timezone_location_get()関数
例
指定されたタイムゾーンの位置情報を返します:
<?php
$tz=timezone_open("Asia/Taipei");
echo timezone_location_get($tz);
?>
$tz=timezone_open("Asia/Taipei");
echo timezone_location_get($tz);
?>
例を実行 »
定義と使用法
timezone_location_get() は、指定されたタイムゾーンの位置情報を返します。
構文
timezone_location_get(object);
| パラメータ | 説明 |
|---|---|
| object | 必須。次の関数によって返されるtimezone_open()DateTimeZone オブジェクトを指定します。 |
技術詳細
| 戻り値: | タイムゾーンの位置情報を含む配列を返します。 |
|---|---|
| PHP バージョン: | 5.3+ |
PHP Date/Time リファレンスマニュアル その他の拡張