This is the standard C library time() function
from time.h.
time_t time(time_t *timer);
The return value is an approximation of the current calendar
time.
The value (time_t*)-1 is returned if the
calendar time is not available. If timer is not a NULL pointer,
the return value is also assigned to the time_t*.