ST_TimeZoneInformation
Time zone information.
TYPE ST_TimeZoneInformation :
STRUCT
bias : DINT; (* Specifies the current bias, in minutes, for local time translation on computer.
The bias is the difference, in minutes, between Coordinated Universal Time (UTC) and local time.
UTC = local time + bias *)
standardName : STRING(31); (* Specifies a string associated with standard time on computer. *)
standardDate : TIMESTRUCT; (*Specifies a time structure that contains a date and local time
when the transition from daylight saving time to standard time occurs on computer.*)
standardBias : DINT; (* Specifies a bias value to be used during local time translations that occur during standard time. *)
daylightName : STRING(31); (* Specifies a string associated with daylight saving time on computer.
For example, this member could contain "PDT" to indicate Pacific Daylight Time.*)
daylightDate : TIMESTRUCT; (* Specifies a time structure that contains a date and local time when the transition
from standard time to daylight saving time occurs on computer. *)
daylightBias : DINT; (* Specifies a bias value to be used during local time translations that occur during daylight saving time. *)
END_STRUCT
END_TYPE
The standard time is also called winter time. The bias parameter can also be negative values.
bias: Defines the current difference in minutes between local time and UTC time. UTC = local time + bias.
standardName: Description of the standard time as string.
standardDate: This structure contains information about the transition from daylight-saving time (summer time) to standard time. The structure parameter wMonth is zero, if this value is unused. If this parameter is used, the daylightDate- parameter has to be used too. To be able to configure the standardDate- parameter set the wYear- parameter zero, select the desired day of week at wDayOfWeek and at wDay a value between 1 and 5 ( week in the month, 5 is the last week in the month).
standardBias: Time difference in minutes for calculations of the local time during the standard time. This value is mostly zero.
daylightName: Description for the daylight-saving time (summer time) as string.
daylightDate: This structure contains information about the transition from standard time to daylight saving time ( summer time). The structure parameter wMonth is zero, if this value is unused. If this parameter is used, the standardDate- parameter has to be used too. To be able to configure the standardDate- parameter set the wYear- parameter zero, select the desired day of week at wDayOfWeek and at wDay a value between 1 and 5 ( week in the month, 5 is the last week in the month)
daylightBias: Time difference in minutes for calculation of the local time during the daylight-saving time.
Requirements
Development Environment | Target System | PLC libraries to include |
---|---|---|
TwinCAT v2.10.0 Build > 1319 | PC or CX (x86) | TcUtilities.Lib |