def Iso8601.dur.num

bend-time-lib@0.4.0.1 · iso8601.bend:458

import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601
import Base

458def Iso8601.dur.num(
459  off: Nat, st: Iso8601.DurS, acc: U32, +h: Char, is_dig: Bool
460) -> Iso8601.DurC:
461  match is_dig:
462    case True{}:
463      Iso8601.dur.ndig(off, st, acc, h)
464    case False{}:
465      Iso8601.dur.unit_d(st, acc, h, Char.is_eq(h, 'D'))

Uses (9)

Used by (1)