Defined in header
Renormalizes local calendar time expressed as a struct tm object and also converts it to time since epoch as a time_t object.
time->tm_yday are ignored. The values in
time are not checked for being out of range.
A negative value of
mktime to attempt to determine if Daylight Saving Time was in effect in the specified time.
If the conversion to
time_t is successful, the
time object is modified. All fields of
time are updated to fit their proper ranges.
time->tm_yday are recalculated using information available in other fields.
|time||-||pointer to a tm object specifying local calendar time to convert|
 Return value
Today is Tue Feb 17 13:46:01 2015 100 months ago was Tue Oct 17 14:46:01 2006
- C11 standard (ISO/IEC 9899:2011):
- 220.127.116.11 The mktime function (p: 390-391)