PHP timezone_location_get () function
PHP Date / Time Reference Manual
Examples
Returns location information for the specified time zone:
<?php
$tz=timezone_open("Asia/Taipei");
echo timezone_location_get($tz);
?>
$tz=timezone_open("Asia/Taipei");
echo timezone_location_get($tz);
?>
Running instance »
Definition and Usage
timezone_location_get () returns the location information specified area.
grammar
timezone_location_get (object);
参数 | 描述 |
---|---|
object | 必需。规定一个由 timezone_open() 返回的 DateTimeZone 对象。 |
technical details
return value: | It returns an array of location information contained in the time zone. |
---|---|
PHP version: | 5.3+ |
PHP Date / Time Reference Manual