Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Embedded
Windows Embedded CE
Windows CE 5.0
Windows CE Features
Core OS Services
Core OS Reference
Time Reference
Time Structures
 SYSTEMTIME
Platform Builder for Microsoft Windows CE 5.0
SYSTEMTIME
Send Feedback

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

typedef struct _SYSTEMTIME { 
  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 this structure to obtain relative times.

The following list shows tasks to perform instead:

  • Convert the SYSTEMTIME structure to a FILETIME structure.
  • Copy the resulting FILETIME structure to a ULARGE_INTEGER structure.
  • Use usual 64-bit arithmetic on the ULARGE_INTEGER value.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.

See Also

Time Structures | GetLocalTime | GetSystemTime | SetLocalTime | SetSystemTime | FILETIME | Timer Driver Reference


Send Feedback on this topic to the authors

Feedback FAQs


© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker