Esc

time_zone_fixed

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

Validates and constructs an allocation-free fixed-offset zone.

Signature

time_zone_fixed :: (value: Offset) -> Time_Zone
Example↗
o, _ := offset(19800);
zone := time_zone_fixed(o);
assert(zone.kind == .FIXED && zone.offset.seconds == 19800);

See also