def Instant.from_unix

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

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

48def Instant.from_unix(+secs: U32) -> Instant:
49  Instant{
50    U32.add(U32.div(secs, 86400), Instant.epoch_days()),
51    U32.mod(secs, 86400),
52    0
53  }

Uses (6)

Used by (1)