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