Create a new DateTimeZone object and return the name of the time zone:
<?php$tz=timezone_open("Europe/Paris");echo timezone_name_get($tz);?>timezone_open() creates a new DateTimeZone object.
timezone_open( timezone);
parameter | describe |
---|---|
timezone | Required. Specify a time zone. Tip: See a list of all time zones supported in PHP |
Return value: | A DateTimeZone object is returned on success, and FALSE on failure. |
---|---|
PHP version: | 5.2+ |