Share via


SetDaylightTime

This function sets the current state of daylight savings time.

void SetDaylightTime( 
DWORD dst);

Parameters

  • dst
    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.

Return Values

None.

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.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.0 and later Winbase.h   Coredll.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SetTimeZoneInformation

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.