PHP timezone_name_get()Functions
PHP Date/Time Reference Manual
Examples
Returns the name of the timezone:
<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
Run Example »
Definition and Usage
timezone_name_get() returns the name of the timezone.
Syntax
timezone_name_get(object);
| Parameters | Description |
|---|---|
| object | Required. Specifies a DateTimeZone object. |
Technical Details
| Return value: | fromTimezone listReturns the name of the timezone in the timezone list. |
|---|---|
| PHP Version: | 5.2+ |
PHP Date/Time Reference Manual Other Extensions