status.i4.v = clib_gettimeofday(tv.s.r, [..r])
This function returns the local date and time into the structure
pointed to by tv.
Returns 0 on success and -1 for error with errno set.
This function was introduced during the VAX/VMS to PC/Linux migration. It
is/was intended to reproduce the semantics of just plain gettimeofday() on
VAX/VMS. VAX/VMS as it was configured unfortunately used local time. The
use of local time created discontinuities in the values returned from
time(). on VAX/VMS. See the explanation of clib_ctime for details. New
uses of this function are discouraged.
This function requires the following include files:
unsigned int seconds;
struct timeval tv;
int status = clib_gettimeofday(&tv, 0)