SetDaylightState
SetDaylightState sets the current time zone to STANDARD time zone or DAYLIGHT time zone.
Syntax
BOOL SetDaylightState(
DST_STATE DstState
);
Parameters
DstState
A DST_STATE enumeration value that specifies whether the system is operating in the STANDARD time zone or DAYLIGHT time zone.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.
Remarks
If the function fails and GetLastError returns ERROR_NOT_SUPPORTED, the current time zone does not observe daylight-saving time. In this case, use the TimeZone environment variable in the RtKrnlConfig.ini file to change the time zone property.
Changing the daylight state will alter the translations between system time in Coordinated Universal Time (UTC) and local time, thereby affecting the returned time from GetLocalTime.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
eRTOS 1.0 SDK |
RtssApi.h | rtkrnl.lib |
See Also: