Create utc_time.c

This commit is contained in:
janbodnar 2016-01-31 14:00:59 +01:00
parent e6b1ce6958
commit 5b8c35be77

14
datetime/utc_time.c Normal file
View File

@ -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;
}