Calendar time. This value counts the number of seconds since
00:00:00 January 1, 1970, Coordinated Universal Time (UTC).
The primitive system data type time_t in timeval, as defined in < sys/time.h>,
holds these time values.
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* and microseconds */
};
There are two major C Library calls to help you handle the calendar time:
- gettimeofday // man -s 3C gettimeofday
- ctime // man -s 3C ctime