MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / _tz_offset

Function _tz_offset

time_rec.c:2206–2215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2204
2205
2206int _tz_offset(const char *tz, time_t t)
2207{
2208 struct tm lt = {0};
2209
2210 _tz_set(tz);
2211 localtime_r(&t, &lt);
2212 tz_reset();
2213
2214 return lt.tm_gmtoff;
2215}

Callers 2

tz_offsetFunction · 0.85
test_tz_dynamicFunction · 0.85

Calls 2

_tz_setFunction · 0.85
tz_resetFunction · 0.85

Tested by 1

test_tz_dynamicFunction · 0.68