mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-14 15:55:30 +00:00
Create local_time.c
This commit is contained in:
parent
20dc63bb54
commit
e6b1ce6958
14
datetime/local_time.c
Normal file
14
datetime/local_time.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include <windows.h>
|
||||
#include <wchar.h>
|
||||
|
||||
int wmain(void) {
|
||||
|
||||
SYSTEMTIME lt = {0};
|
||||
|
||||
GetLocalTime(<);
|
||||
|
||||
wprintf(L"The local time is: %02d:%02d:%02d\n",
|
||||
lt.wHour, lt.wMinute, lt.wSecond);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user