Table of Contents Previous topic Next topic
C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->mktime()
Summary
#include <time>
time_t mktime(struct tm* pTime)
Parameter
pTime Pointer to time structure tm
Description
This function converts the (possibly incomplete) time structure pointed to by pTime into a fully defined structure with normalised values and at the same time generates a time_t calendar time value.
Return
This function returns specified time encoded as a value of type time_t.
If the supplied time is a date before 1st January 1970 or is a value which cannot be represented, the function returns 1 cast to time_t.