def Instant.to_unix.ge

bend-time-lib@0.4.0.1 · instant.bend:34

import bend-time-lib@0.4.0.1/instant.bend as Instant
import 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)

Uses (7)

Used by (1)