PHP timezone_name_get () function
PHP Date / Time Reference Manual
Examples
Returns the name of the time zone:
<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
Running instance »
Definition and Usage
timezone_name_get () Returns the name of the time zone.
grammar
timezone_name_get (object);
参数 | 描述 |
---|---|
object | 必需。规定一个 DateTimeZone 对象。 |
technical details
return value: | From the list of time zones names returned in time zones. |
---|---|
PHP version: | 5.2+ |
PHP Date / Time Reference Manual