SetDaylightTime

The SetDaylightTime function sets the current state of daylight savings time.

Syntax

void SetDaylightTime(DWORD dst);

At a Glance

Header file: Winbase.h
Module: Nk
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

dst
An integer that indicates whether or not day light savings time is in effect. A value of 1 indicates that daylight savings time is in effect; a value of 0 indicates that standard time is in effect.

Remarks

Windows CE does not automatically correct the time to account for daylight savings time. To enable Windows CE to correctly calculate the time, call this function with dst set to 1 when daylight savings time begins; call it with dst set to 0 when it ends.

See Also

SetTimeZoneInformation