TIME(3) Library Functions Manual TIME(3)

timeget time

#include <time.h>

time_t time(time_t *tloc);

The time() function returns the value of time in seconds since the Epoch.

The tloc argument points to an area where the return value is also stored. If tloc is a null pointer, no value is stored.

Upon successful completion, time() returns the value of time. Otherwise, ( time_t )-1 is returned.

No errors are defined.

None.

None.

None.

asctime(3) , clock(3) , ctime(3) , difftime(3) , gmtime(3) , localtime(3) , mktime(3) , strftime(3) , strptime(3) , utime(3) , <time.h> .

Derived from Issue 1 of the SVID.

February 1997 posix.fail