def Instant.to_unix.add

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

import bend-time-lib@0.4.0.1/instant.bend as Instant
import Base

20def Instant.to_unix.add(
21  +udays: U32, +sod: U32, ok: Bool
22) -> Result<&2, &2, Instant.Error, U32>:
23  match ok:
24    case False{}:
25      Fail{OutOfRange{}}
26    case True{}:
27      Done{U32.add(U32.mul(udays, 86400), sod)}

Uses (6)

Used by (1)