kolibrios-fun/programs/develop/libraries/kolibri-libc/source/stdlib/time.c

10 lines
151 B
C
Raw Normal View History

#include <time.h>
#include <sys/ksys.h>
time_t time (time_t* timer)
{
time_t t = mktime(localtime(0));
if (timer) *timer = t;
return t;
}