MCPcopy Create free account
hub / github.com/eggert/tz / mktime

Function mktime

localtime.c:2931–2945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2929static
2930# endif
2931time_t
2932mktime(struct tm *tmp)
2933{
2934 monotime_t now = get_monotonic_time();
2935 time_t t;
2936 int err = lock();
2937 if (0 < err) {
2938 errno = err;
2939 return -1;
2940 }
2941 tzset_unlocked(!err, false, now);
2942 t = mktime_tzname(lclptr, tmp, true);
2943 unlock(!err);
2944 return t;
2945}
2946
2947#endif
2948

Callers 2

_fmtFunction · 0.85
timelocalFunction · 0.85

Calls 5

get_monotonic_timeFunction · 0.85
lockFunction · 0.85
tzset_unlockedFunction · 0.85
mktime_tznameFunction · 0.85
unlockFunction · 0.85

Tested by

no test coverage detected