def Format.off.hour2
import bend-time-lib@0.4.0.1/format.bend as Formatimport Base
import bend-scanner@0.1.0.0/parse.bend as P
237def Format.off.hour2(
238 west: Bool, r: Result<&2, &2, P.Parse.Error, P.Parse.Dec>
239) -> Result<&2, &2, Format.Error, Format.OffP>:
240 match r:
241 case Fail{e}:
242 Fail{Format.from_parse(e)}
243 case Done{P.Dec{h, cur}}:
244 Format.off.colon(west, h, P.Parse.expect_char(cur, ':'))