Func Date Timezone Offset Get
# PHP timezone_offset_get() Function
[ PHP Date/Time Reference](#)
## Example
Returns the timezone offset relative to GMT:
[Run Example Β»](#)
* * *
## Definition and Usage
timezone_offset_get() returns the timezone offset relative to GMT.
## Syntax
timezone_offset_get _(object,datetime);_
| Parameter | Description |
| :--- | :--- |
| _object_ | Required. Specifies a DateTimeZone object returned by [timezone_open()](#). |
| _datetime_ | Required. Specifies the date/time for which to calculate the offset. |
## Technical Details
| Return Value: | Returns the timezone offset in seconds on success, FALSE on failure. |
| :--- |
| PHP Version: | 5.2+ |
* * PHP Date/Time Reference](#)
YouTip