Defined in header
Converts local calendar time to a 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.
If the conversion 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|
Display the time 100 months ago
Today is Wed Oct 9 10:47:25 2013 100 months ago was Thu Jun 9 10:47:25 2005
| converts time since epoch to calendar time expressed as local time |
C++ documentation for mktime