#include <sys/time.h> #include <unistd.h> int gettimeofday( struct timeval *tp, struct timezone *tzp );
On error, this routine returns -1 and sets errno
as appropriate.
settimeofdat
is called by someone other than the superuser.
tv
or tz
pointed outside your accessible address
space
This routine returns the current time of day in the tp
structure.
Currently, the timezone information is not supported. The tzp
argument is ignored.
Copyright © 1988-2008 OAR Corporation