time3
Get time of day
Usage
#include <time.h>
time_t
time(time_t *tloc);
Library
Standard C Library (libc, -lc)
Overview
The time() function returns the value of time in seconds since 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time, without including leap seconds. If an error occurs, time() returns the value (time_t)-1.
The return value is also stored in *tloc, provided that tloc is non-null.
Errors
The time() function may fail for any of the reasons described in gettimeofday(2).
Releases
163 releases since Mac OS X 10.0; the text changed 4 times.