def zone
import bend-kit-time@0.3.0.0/time.bend as Timeimport Base
502# Z, or +hh:mm or -hh:mm, as (sign, hh, mm) with sign 1 for west of UTC.
503def zone(p: P) -> Maybe<&2, P>:
504 match p:
505 case P{vs, s}:
506 match s:
507 case SNil{}:
508 None{}
509 case SCon{Chr{+c}, t}:
510 zone.if(Bool.or(U32.is_eq(c, 90), U32.is_eq(c, 122)), U32.is_eq(c, 43), U32.is_eq(c, 45), vs, t)