Return the name of the time zone:
<?php$tz=timezone_open("Europe/Paris");echo timezone_name_get($tz);?>timezone_name_get() returns the name of the time zone.
timezone_name_get (object);
parameter | describe |
---|---|
object | Required. Specifies a DateTimeZone object. |
Return value: | Returns the name of the time zone from a list of time zones. |
---|---|
PHP version: | 5.2+ |