seconds.u4.v = clib_mktime(tm.s.r)
This function converts the local time contained in the structrure
pointed to by tm to local time in seconds since 00:00:00 Jan 1, 1970.
Returns -1 on error.
This function was introduced during the VAX/VMS to PC/Linux migration. It
is/was intended to reproduce the semantics of just plain mktime() 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;
seconds = clib_time(0);
seconds = clib_mktime(clib_localtime(&seconds));