||
SYSTEMTIME SystemTime;
GetLocalTime(&SystemTime); //获取本地时间
GetSystemTime(&SystemTime); //获取格林威治时间
嵌入式系统程序员喜欢刨根问底, SYSTEMTIME结构的定义如下,
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;