ladybird/Userland/date.cpp
Andreas Kling dc6f57f19c Add gettimeofday() syscall and LibC wrappers gettimeofday() and time().
This only has second accuracy right now, I'll work out subseconds later.
2018-10-25 17:36:18 +02:00

11 lines
150 B
C++

#include <LibC/time.h>
#include <LibC/stdio.h>
int main(int c, char** v)
{
time_t now = time(nullptr);
printf("%u\n", now);
return 0;
}