def Iso8601.per.unit_w

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

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

706def Iso8601.per.unit_w(
707  st: Iso8601.PerS, n: U32, +c: Char, is_w: Bool
708) -> Iso8601.PerC:
709  match is_w:
710    case True{}:
711      Iso8601.per.cont_r(Iso8601.per.put_w(st, n), PSeek{})
712    case False{}:
713      Iso8601.per.unit_d(st, n, Char.is_eq(c, 'D'))

Uses (10)

Used by (1)