Expand description
Access to the C runtime’s tzset / timezone / altzone / daylight / tzname
globals used by Python’s time module.
Not available under MSVC (which exposes these only via the
_get_tzname-style helpers) or on wasm32 (no libc tz state).
Functions§
- altzone
- DST offset west of UTC in seconds, matching CPython’s
time.altzone. - daylight
- timezone
- tzname_
strings - Snapshot of
tzname[0]/tzname[1]as ownedStrings. Reads the C globals once and copies the bytes out so callers don’t have to handle the raw pointers themselves. - tzset