--- title: "system.date.getTimezoneOffset" description: "Returns the current timezone's offset versus UTC for a given instant, taking Daylight Savings Time into account." --- # system.date.getTimezoneOffset > Returns the current timezone's offset versus UTC for a given instant, taking Daylight Savings Time into account. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.date.getTimezoneOffset()` ### Parameters Type | Parameter | Description ------- | ------- | ------ Date | `date` | The instant in time for which to calculate the offset. Uses now() if omitted. [optional] ### Returns **Double** - The timezone offset compared to UTC, in hours. ### Scope All ## Code Examples ```python title="Example #1" # This example will give the timezone offset using the date February 22, 2017 # and the computers current timezone. date = system.date.getDate(2017, 1, 22) print system.date.getTimezoneOffset(date) # returns -8.0 (if you are in Pacific Daylight Time) ```