mktime converts a broken-down local calendar time in struct tm to a time_t value and normalizes the structure’s date fields. section 8.5
Preparing a calendar value
A struct tm uses tm_mon = 0 for January, tm_mday starting at 1, and tm_year as years since 1900. Passing it to mktime normalizes the hierarchical fields, computes tm_wday and tm_yday, and resolves a negative tm_isdst for the local platform. section 8.5
mktime performs three related operations:
- Normalizes hierarchical date members to their respective ranges. section 8.5
- Sets tm_wday and tm_yday to their corresponding values. section 8.5
- Returns the calendar time as arithmetic type time_t, suited to computation on a linear time scale. section 8.5

