def Format.off.min2

bend-time-lib@0.4.0.1 · format.bend:219

import bend-time-lib@0.4.0.1/format.bend as Format
import Base
import bend-scanner@0.1.0.0/parse.bend as P
import bend-time-lib@0.4.0.1/datetime.bend as DT

219def Format.off.min2(
220  +west: Bool, +h: U32, r: Result<&2, &2, P.Parse.Error, P.Parse.Dec>
221) -> Result<&2, &2, Format.Error, Format.OffP>:
222  match r:
223    case Fail{e}:
224      Fail{Format.from_parse(e)}
225    case Done{P.Dec{+mi, cur}}:
226      Format.off.mk(west, h, mi, cur, DT.UtcOffset.from(west, h, mi))

Uses (10)

Used by (1)