Esc

time_zone_free

procedureextensionsince 0.36.1Source
  • macOS: time_zone_free works on macOS
  • Linux: time_zone_free works on Linux
  • Windows: time_zone_free works on Windows
  • Wasm: time_zone_free works on Wasm

Releases one owned reference and resets the handle to UTC; borrowed copies become invalid.

Signature

time_zone_free :: (value: *Time_Zone)
Example↗
zone, _ := time_zone_from_posix("EST5EDT,M3.2.0,M11.1.0");
time_zone_free(*zone);
assert(zone.kind == .UTC);

See also