benilla-re systems structs docs

_tzname

global · crt

Address
0x8327d8 · 8 bytes, up to 0x8327df
Type
char *[2]
Meaning
Points to the standard and daylight zone names, PST and PDT in the file, which __tzset_lk fills
Confidence
verified, proof one
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.