def Iso8601.dur.unit_s
import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601import Base
422def Iso8601.dur.unit_s(
423 st: Iso8601.DurS, n: U32, +c: Char, is_s: Bool
424) -> Iso8601.DurC:
425 match is_s:
426 case True{}:
427 Iso8601.dur.cont_r(Iso8601.dur.put_s(st, n, 0), DSeek{})
428 case False{}:
429 Iso8601.dur.unit_dot(st, n, Char.is_eq(c, '.'))