mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-14 15:55:30 +00:00
16 lines
296 B
C
16 lines
296 B
C
#include <windows.h>
|
|
#include <wchar.h>
|
|
|
|
int wmain(void) {
|
|
|
|
SYSTEMTIME st = {0};
|
|
|
|
wchar_t *dn[] = { L"Sunday", L"Monday", L"Tuesday",
|
|
L"Wednesday", L"Thursday", L"Friday", L"Saturday" };
|
|
|
|
GetLocalTime(&st);
|
|
wprintf(L"Today is %ls\n", dn[st.wDayOfWeek]);
|
|
|
|
return 0;
|
|
}
|