diff --git a/Userland/date.cpp b/Userland/date.cpp index 2610f60ca6..951cfb21cc 100644 --- a/Userland/date.cpp +++ b/Userland/date.cpp @@ -5,8 +5,16 @@ int main(int argc, char** argv) { (void) argc; (void) argv; + time_t now = time(nullptr); - printf("%u\n", now); + auto* tm = localtime(&now); + printf("%4u-%02u-%02u %02u:%02u:%02u\n", + tm->tm_year + 1900, + tm->tm_mon + 1, + tm->tm_mday, + tm->tm_hour, + tm->tm_min, + tm->tm_sec); return 0; }