def Instant.to_unix.ge
import bend-time-lib@0.4.0.1/instant.bend as Instantimport Base
34def Instant.to_unix.ge(
35 +days: U32, +sod: U32, ok: Bool
36) -> Result<&2, &2, Instant.Error, U32>:
37 match ok:
38 case False{}:
39 Fail{OutOfRange{}}
40 case True{}:
41 Instant.to_unix.d(U32.sub(days, Instant.epoch_days()), sod)