This function is used in Python Scripting.

Description

Returns the current time zone offset versus UTC, not taking Daylight Saving Time into account.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.date.getTimezoneRawOffset()

  • Parameters

Nothing

  • Returns

Double - The time zone offset.

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# This example gives the raw timezone offset (ignoring Daylight Saving Time) for the computers current time zone.

print system.date.getTimezoneRawOffset() # returns -8.0 (if you are in the Pacific time zone)
Keywords

system date getTimezoneRawOffset, date.getTimezoneRawOffset