mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2026-07-14 10:12:48 -04:00
Create utc_time.c
This commit is contained in:
parent
e6b1ce6958
commit
5b8c35be77
14
datetime/utc_time.c
Normal file
14
datetime/utc_time.c
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user