PHP date_timezone_get() Function
PHP Date/Time Reference Manual
Example
Return the time zone of a given DateTime object:
Run Example »
Definition and Usage
The date_timezone_get() function returns the time zone of a given DateTime object.
Syntax
date_timezone_get(
object);
| Parameters | Description |
|---|---|
| object | Required. Specifies a DateTime object returned by date_create() DateTime object returned by |
Technical Details
| Return Value: | Returns a DateTimeZone object on success, or FALSE on failure. |
|---|---|
| PHP Version: | 5.2+ |
PHP Date/Time Reference Manual