time() Time Function time() Get current time #include <time.h> #include <sys/types.h> time_t time(tp) time_t *tp; time reads the current system time. tp points to a data element of the type time_t, which is defined in the header file types.h as being equivalent to a long. COHERENT defines the current sys- tem time as the number of seconds since January 1, 1970, 0h00m00s GMT. ***** Example ***** For an example of this function, see the entry for asctime. ***** See Also ***** date, time (overview) COHERENT Lexicon Page 1