Go to the first, previous, next, last section, table of contents.


mktime

Syntax

#include <time.h>

time_t mktime(struct tm *tptr);

Description

This function converts a time structure into the number of seconds since 00:00:00 GMT 1/1/1970. It also attempts to normalize the fields of tptr.

Return Value

The resulting time, or -1 if the time in tptr cannot be described in that format.

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.