Return the timezone of the given DateTime object:
The date_timezone_get() function returns the time zone of the given DateTime object.
Parameter | Description |
---|---|
object | Required. Specifies a DateTime object returned by date_create(). |
Return Value: | Returns a DateTimeZone object on success. FALSE on failure |
---|---|
PHP Version: | 5.2+ |