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 (UTC). 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 clock_gettime(2).
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 46 times.