Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2206
int _tz_offset(const char *tz, time_t t)
2207
{
2208
struct tm lt = {0};
2209
2210
_tz_set(tz);
2211
localtime_r(&t, <);
2212
tz_reset();
2213
2214
return lt.tm_gmtoff;
2215
}
Callers
2
tz_offset
Function · 0.85
test_tz_dynamic
Function · 0.85
Calls
2
_tz_set
Function · 0.85
tz_reset
Function · 0.85
Tested by
1
test_tz_dynamic
Function · 0.68