def Iso8601.per.num
import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601import Base
734def Iso8601.per.num(
735 off: Nat, st: Iso8601.PerS, acc: U32, +h: Char, is_dig: Bool
736) -> Iso8601.PerC:
737 match is_dig:
738 case True{}:
739 Iso8601.per.ndig(off, st, acc, h)
740 case False{}:
741 Iso8601.per.unit_y(st, acc, h, Char.is_eq(h, 'Y'))