Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP timezone_name_get() Function

PHP timezone_name_get() Function

PHP Date/Time PHP Date/Time Reference Manual

Example

Return the name of a time zone:

Run Example »


Definition and Usage

timezone_name_get() returns the name of a time zone.

Syntax

timezone_name_get

(object);

Parameters Description
object Required. Specifies a DateTimeZone object.

Technical Details

Return Value: From thetime zone list, returns the name of the time zone.
PHP Version: 5.2+

PHP Date/Time PHP Date/Time Reference Manual