mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-24 11:25:30 +00:00
15 lines
227 B
C
15 lines
227 B
C
#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;
|
|
}
|