int gettimeofday(struct timeval *tp);
int settimeofday(struct timeval *tp);
gettimeofday gets and settimeofday sets the system's notion of the current time. The current time is expressed in elapsed seconds and microseconds since 1970-01-01 00:00 UTC. The behavior of the system clock is determined by space.c parameters discussed on the clock(HW) manual page.
tp points to a timeval structure, which includes the following members:
long tv_sec; /* seconds since Jan. 1, 1970 */ long tv_usec; /* and microseconds */If tp is a null pointer, the current time information is not returned or set.
Only the privileged user may set the time of day.
AT&T SVID Issue 3.