__tzset_lk
function · crt · host
- Address
0x4145a5· 647 bytes, up to0x41482b- Signature
void __cdecl (void)- Meaning
- Sets _timezone, _daylight, _dstbias and _tzname from TZ, else from GetTimeZoneInformation
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/time#the-zone-read-once
Finding: The zone, read once in crt: calendar time
___tzset runs __tzset_lk on its first call only, so the zone is read once per process, by the
first localtime, mktime, strftime %Z or ___loctotime_t (0x7426e9, its call at
0x742728, which time and the stat functions reach from 12 sites). With the environment variable TZ set and not
empty, the zone is its text: up to three bytes of standard name, then hours west of UTC with an
optional - for east, optional :minutes and :seconds, then up to three bytes of daylight
name. _daylight is the first byte of that name, 0 without one, and _dstbias keeps its value.
An empty TZ leaves the file's zone. _tzset, which would read the zone again, has no caller.
The derivation is in the doc.
Callers 2
Callees 8
Calls and jumps by a bare address, from tables/calls.tsv.