def tz.off
import cswap-bend-cli@0.1.0.0/clock.bend as Clockimport Base
173# The zone offset in seconds, biased by 86400 so it stays unsigned: `Z`,
174# `+HH:MM`, `-HH`, `+HHMM`, or none (read as UTC, as the reference's naive
175# stamps are).
176def tz.off(neg: Bool, +h: U32, +m: U32) -> Maybe<&2, U32>:
177 tz.off.pick(U32.is_lt(h, 24) && U32.is_lt(m, 60), neg, (h * 3600 + m * 60 : U32))