Microsoft Windows CE 3.0  

SYSTEMTIME

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This structure represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.

typedef struct _SYSTEMTIME { // st
WORD
wYear
;
WORD
wMonth
;
WORD
wDayOfWeek
;
WORD
wDay
;
WORD
wHour
;
WORD
wMinute
;
WORD
wSecond
;
WORD
wMilliseconds
;
} SYSTEMTIME;

Members

wYear
Specifies the current year.
wMonth
Specifies the current month; January = 1, February = 2, and so on.
wDayOfWeek
Specifies the current day of the week; Sunday = 0, Monday = 1, and so on.
wDay
Specifies the current day of the month.
wHour
Specifies the current hour.
wMinute
Specifies the current minute.
wSecond
Specifies the current second.
wMilliseconds
Specifies the current millisecond.

Remarks

It is not recommended that you add and subtract values from the SYSTEMTIMEstructure to obtain relative times. Instead, you should

  • Convert the SYSTEMTIMEstructure to a FILETIMEstructure.
  • Copy the resulting FILETIMEstructure to a ULARGE_INTEGERstructure.
  • Use normal 64-bit arithmetic on the ULARGE_INTEGERvalue.

    Requirements

    Runs on Versions Defined in Include Link to
    Windows CE OS 1.0 and later Winbase.h    
    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

    GetLocalTime, GetSystemTime, SetLocalTime, SetSystemTime, FILETIME