Manpage of MKTIME
MKTIME
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
8.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
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:25 GMT, May 16, 2005
www.fiveanddime.net