mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-24 11:25:30 +00:00
Create today.c
This commit is contained in:
parent
5b8c35be77
commit
45ba206d38
13
datetime/today.c
Normal file
13
datetime/today.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <windows.h>
|
||||
#include <wchar.h>
|
||||
|
||||
int wmain(void) {
|
||||
|
||||
SYSTEMTIME st = {0};
|
||||
|
||||
GetLocalTime(&st);
|
||||
|
||||
wprintf(L"Today is: %d-%02d-%02d\n", st.wYear, st.wMonth, st.wDay);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user