Skip to main content
Version: 8.1

system.date.getTimezoneRawOffset

This function is used in Python Scripting.

Description​

Returns the current timezone offset versus UTC, not taking daylight savings into account.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.date.getTimezoneRawOffset()

Parameters​

Nothing

Returns​

Double - The timezone offset.

Scope​

Gateway, Vision Client, Perspective Session

Code Examples​

Code Snippet
# This example will give the Raw timezone offset (ignoring daylight savings) for the computers current timezone.

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

Keywords​

system date getTimezoneRawOffset, date.getTimezoneRawOffset