mktime


The following program demonstrates the mktime library function, which converts a struct tm representing local time back to a time_t (number of seconds since January 1, 1970).

The program demonstrates how mktime propertly converts a localtime value, but not a UTC value.

mktime.c