Name
GetTimeZone -- get time zone information (V7.1)
Synopsis
off, dst = GetTimeZone()
Function
This function can be used to obtain information about the time zone the host system is in. It will return two values: off will be set to the number of minutes of this computer's time from UTC and dst will be a boolean value that specifies whether or not daylight saving time is currently active in the host system's time zone.

Note that off will be negative if the host system is east of UTC and positive if it is west of UTC.

Inputs
none

Results
off
offset in minutes from UTC
dst
True if daylight saving time is currently active, False otherwise
Example
Print(GetTimeZone())
When run in January on a computer in Germany, this will print "-60" and "0" because there is no daylight saving time in Germany in January and CET is 60 minutes ahead of UTC in winter.

Show TOC