def when.clock.ss.go

emerging-eztoml@0.9.0.0 · main.bend:852

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

852# seconds, then an optional fraction and zone
853def when.clock.ss.go(dd: Dig, +hh: U32, +mi: U32, date: Date) -> WhenOut:
854  match dd:
855    case DigBad{}:
856      WFail{"invalid time"}
857    case DigOk{+n, cs}:
858      when.clock.range(bound.rng(hh, 0, 23), bound.rng(mi, 0, 59), bound.rng(n, 0, 60), hh, mi, n,
859        cs, date)

Uses (6)

Used by (1)