This function is used in Python Scripting.


Returns the current time zone's offset versus UTC for a given instant, taking Daylight Saving Time into account.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.


  • Parameters

Date date- The instant in time for which to calculate the offset. Uses now() if omitted. [optional]

  • Returns

Double - The time zone offset compared to UTC, in hours.

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# This example will give the time zone offset using the date February 22, 2021
# and the computers current time zone.

date =, 1, 22)
print # returns -8.0 (if you are in Pacific Daylight Time)

system date getTimezoneOffset, date.getTimezoneOffset