SYSTEMTIME SYSTEMTIME SYSTEMTIME SYSTEMTIME SYSTEMTIME SYSTEMTIME Struct

Definition

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

public value class SYSTEMTIME
public value class SYSTEMTIME
struct SYSTEMTIME
public struct SYSTEMTIME
type SYSTEMTIME = struct
Public Structure SYSTEMTIME
Inheritance
SYSTEMTIMESYSTEMTIMESYSTEMTIMESYSTEMTIMESYSTEMTIMESYSTEMTIME

Remarks

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

  • Convert the SYSTEMTIME structure to a FILETIME structure.

  • Copy the resulting FILETIME structure to a ULARGE_INTEGER structure.

  • Use normal 64-bit arithmetic on the ULARGE_INTEGER value.

Fields

wDay wDay wDay wDay wDay wDay

Specifies the current day of the month.

wDayOfWeek wDayOfWeek wDayOfWeek wDayOfWeek wDayOfWeek wDayOfWeek

Specifies the current day of the week; Sunday = 0, Monday = 1, and so on.

wHour wHour wHour wHour wHour wHour

Specifies the current hour.

wMilliseconds wMilliseconds wMilliseconds wMilliseconds wMilliseconds wMilliseconds

Specifies the current millisecond.

wMinute wMinute wMinute wMinute wMinute wMinute

Specifies the current minute.

wMonth wMonth wMonth wMonth wMonth wMonth

Specifies the current month.

wSecond wSecond wSecond wSecond wSecond wSecond

Specifies the current second.

wYear wYear wYear wYear wYear wYear

Specifies the current year. The year must be greater than 1601.

Applies to