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

Function timegm

localtime.c:2991–3002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2989
2990#if !USE_TIMEX_T
2991time_t
2992timegm(struct tm *tmp)
2993{
2994 time_t t;
2995 struct tm tmcpy;
2996 mktmcpy(&tmcpy, tmp);
2997 tmcpy.tm_wday = -1;
2998 t = timeoff(&tmcpy, 0);
2999 if (0 <= tmcpy.tm_wday)
3000 *tmp = tmcpy;
3001 return t;
3002}
3003#endif
3004
3005static int_fast32_2s

Callers

nothing calls this directly

Calls 2

mktmcpyFunction · 0.85
timeoffFunction · 0.85

Tested by

no test coverage detected