kolibrios/contrib/kolibri-libc/source/stdlib/time.c

10 lines
147 B
C
Raw Normal View History

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