Return the timezone offset from GMT:
The timezone_offset_get() returns the timezone offset from GMT.
Parameter | Description |
---|---|
object | Required. Specifies a DateTimeZone object returned by timezone_open() |
datetime | Required. Specifies a date/time to compute the offset from |
Return Value: | Returns the timezone offset in seconds on success. FALSE on failure |
---|---|
PHP Version: | 5.2+ |