FreeRDP
TestSystemTime.c
1 
2 #include <winpr/crt.h>
3 #include <winpr/sysinfo.h>
4 
5 int TestSystemTime(int argc, char* argv[])
6 {
7  SYSTEMTIME sTime;
8 
9  WINPR_UNUSED(argc);
10  WINPR_UNUSED(argv);
11 
12  GetSystemTime(&sTime);
13 
14  printf("GetSystemTime: wYear: %" PRIu16 " wMonth: %" PRIu16 " wDayOfWeek: %" PRIu16
15  " wDay: %" PRIu16 " wHour: %" PRIu16 " wMinute: %" PRIu16 " wSecond: %" PRIu16
16  " wMilliseconds: %" PRIu16 "\n",
17  sTime.wYear, sTime.wMonth, sTime.wDayOfWeek, sTime.wDay, sTime.wHour, sTime.wMinute,
18  sTime.wSecond, sTime.wMilliseconds);
19 
20  return 0;
21 }