def Iso8601.dur.unit_h

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

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

438def Iso8601.dur.unit_h(
439  st: Iso8601.DurS, n: U32, +c: Char, is_h: Bool
440) -> Iso8601.DurC:
441  match is_h:
442    case True{}:
443      Iso8601.dur.cont_r(Iso8601.dur.put_h(st, n), DSeek{})
444    case False{}:
445      Iso8601.dur.unit_m(st, n, c, Char.is_eq(c, 'M'))

Uses (10)

Used by (1)