mktime()

Converts a structure of type tm to a value of type time_t.

  #include <time.h>
  
  time_t mktime(struct tm *ts);    
Parameter

ts

A pointer to a time structure to convert.

Remarks

This function converts ts to a value of type time_t. The function returns this converted value.

The function also adjusts the fields in ts if necessary. The tm_sec, tm_min, tm_hour, and tm_day are processed such that if they are greater than their maximum, the appropriate carry-overs are computed.

For example, if ts->tm_min is 65, then the function will set ts->tm_min to 5 and increment ts->tm_hour by 1.

The function also corrects the values in ts->tm_wday and ts->tm_yday.

This facility may not be available on some configurations of the EWL.