Timegm
Timegm is a non-standard C library function that converts a broken-down time specification in Coordinated Universal Time (UTC) to a time_t value representing seconds since the Unix epoch (00:00:00 UTC on January 1, 1970). It serves as the UTC counterpart to mktime, which interprets the input as local time.
Prototype and behavior: time_t timegm(struct tm *tm); The function takes a pointer to a tm structure, which
Availability and portability: timegm is not part of the POSIX standard. It is provided by many Unix-like
Usage notes and alternatives: Since timegm assumes UTC, it does not apply local time zone or daylight
See also: mktime, gmtime, localtime, tzset, and the TZ environment variable.