Create utc_time.c

add-license-1
janbodnar 9 years ago
parent e6b1ce6958
commit 5b8c35be77
  1. 14
      datetime/utc_time.c

@ -0,0 +1,14 @@
#include <windows.h>
#include <wchar.h>
int wmain(void) {
SYSTEMTIME st = {0};
GetSystemTime(&st);
wprintf(L"The system time is: %02d:%02d:%02d\n",
st.wHour, st.wMinute, st.wSecond);
return 0;
}
Loading…
Cancel
Save