SetLocalTime

This function sets the current local time and date.

At a Glance

Header file: Winbase.h
Windows CE versions: 1.0 and later

Syntax

BOOL SetLocalTime( const SYSTEMTIME *lpSystemTime );

Parameters

lpSystemTime

[in] Pointer to a SYSTEMTIME structure that contains the current local date and time.

The wDayOfWeek member of the SYSTEMTIME structure is ignored.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

See Also

GetLocalTime, GetSystemTime, SYSTEMTIME