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

Function my_gmtime_r

zdump.c:317–321  ·  view source on GitHub ↗

Convert *TP to UT, storing the broken-down time into *TMP. Return TMP if successful, NULL otherwise. This is like gmtime_r(TP, TMP), except typically faster if USE_LOCALTIME_RZ. */

Source from the content-addressed store, hash-verified

315 Return TMP if successful, NULL otherwise. This is like gmtime_r(TP, TMP),
316 except typically faster if USE_LOCALTIME_RZ. */
317static struct tm *
318my_gmtime_r(time_t *tp, struct tm *tmp)
319{
320 return USE_LOCALTIME_RZ ? localtime_rz(gmtz, tp, tmp) : gmtime_r(tp, tmp);
321}
322
323static void
324abbrok(const char *const abbrp, const char *const zone)

Callers 3

gmtoffFunction · 0.85
showFunction · 0.85
showextremaFunction · 0.85

Calls 2

localtime_rzFunction · 0.70
gmtime_rFunction · 0.70

Tested by

no test coverage detected