TimezoneInformation2
(STRUCT)
TYPE TimezoneInformation2 : STRUCT
<category>Timezone information 2</category> <description>
Specifies a time zone.
</description>
- InOut:
Name
Type
Comment
utcOffsetSeconds
DINT
This field describes the current local time zone, including any adjustment for daylight saving; it is the number of seconds that you must add to UTC to get local time. You can also think of this as the number of seconds east of UTC.
isDST
DINT
This flag indicates whether Daylight Saving Time is in effect at the current local time zone. The value is positive if Daylight Saving Time is in effect, zero if it is not, and negative if the information is not available.
szTimezone
STRING(127)
This field is either the name, e.g. “Europe/Berlin”, or the (POSIX) abbreviation, e.g. “CET”, of the current local time zone of the IANA tz database (AKA Olson tz database). The name is typically returned on Windows and the abbreviation on Linux and VxWorks.
Note for Windows based systems: The Windows time zone ID is mapped to the IANA time zone with the territory code “001”, known as the “golden zone”. When the current local Windows time zone ID is unmappable to an IANA time zone, then the SysTimeRtcGetTimezone2 function returns the Windows time zone ID, but the operation itself remains successful (ERR_OK).