Converts a struct tm to time_t.
time_t mktime (struct tm * timep);
Required Header |
<time.h> |
Return Value
This function returns the converted structure. -1, cast to time_t, indicates an error.
Parameters
timep
A pointer to the struct tm structure to be converted