Skip to content

Commit

Permalink
Create today.c
Browse files Browse the repository at this point in the history
  • Loading branch information
janbodnar committed Jan 31, 2016
1 parent 5b8c35b commit 45ba206
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions datetime/today.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 45ba206

Please sign in to comment.