MKTIME(3)

NAME
9.7 `mktime'--convert time to arithmetic representation

SYNOPSIS
     #include <time.h>
     time_t mktime(struct tm *TIMP);

DESCRIPTION
`mktime' assumes the time at TIMP is a local time, and converts its representation from the traditional representation defined by `struct tm' into a representation suitable for arithmetic.
   `localtime' is the inverse of `mktime'.

RETURNS
If the contents of the structure at TIMP do not form a valid calendar time representation, the result is `-1'. Otherwise, the result is the time, converted to a `time_t' value.

PORTABILITY
ANSI C requires `mktime'.
   `mktime' requires no supporting OS subroutines.

SEE ALSO
mktime is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.