Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: time.h

mktime()

IMPORT_C time_t mktime(struct tm *_timeptr);

Description

Convert tm structure to time_t value. Checks the members of the tm structure passed as parameter ptm adjusting the values if the ones provided are not in the possible range or they are not complete or mistaken and then translates that structure to a time_t value (seconds elapsed since Jan 1, 1970) that is returned. The original values of tm_wday and tm_yday members of ptm are ignored and filled with the correspondent ones to the calculated date. The range of tm_mday is not checked until tm_mon and tm_year are determined.

Parameters

struct tm *_timeptr

Pointer to a tm structure, that contains data to be computed.

Return value

time_t

A time_t value corresponding to the date and time passed in ptm parameter. On error, a -1 value is returned.