time

Gets the system time.

time_t time (time_t * timer);

Required Header
<time.h>

Return Value

This function returns the system time as a time_t.

Parameters

timer

  A pointer to where the system time may be stored

Remarks

The time function stores the system time in timer if a non-NULL value was passed, and returns the same value in any case.

Time

See Also    asctime, ctime, localtime, gmtime, mktime,