TIME(3) Library Functions Manual TIME(3)
NAME
time — get
time
SYNOPSIS
#include <time.h> time_t time(time_t *tloc);
DESCRIPTION
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.
RETURN VALUE
Upon successful completion, time() returns the value of time. Otherwise, ( time_t )-1 is returned.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
asctime(3) , clock(3) , ctime(3) , difftime(3) , gmtime(3) , localtime(3) , mktime(3) , strftime(3) , strptime(3) , utime(3) , <time.h> .
DERIVATION
Derived from Issue 1 of the SVID.
February 1997 posix.fail