SYSTEMTIME结构表示使用个人成员进行月,日,工作日,小时,分钟,秒和毫秒的日期和时间。
typedef struct _SYSTEMTIME { // st
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;
会员
wYear
指定当前年份。
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.
wDayso
指定当前的当天。
wHour
指定当前小时。
wMinute
指定当前分钟。
wSecond
指定当前第二个。
wMilliseconds
指定当前毫秒。
备注
不建议您从SYSTEMTIME结构中添加和减去值以获取相对时间。相反,你应该
*将SYSTEMTIME结构转换为FILETIME结构。
*将结果FILETIME结构复制到LARGE_INTEGER结构。
*在LARGE_INTEGER值上使用正常的64位算术。
也可以看看