def time.fields

ezsys@0.1.0.0 · src/clock.bend:361

import ezsys@0.1.0.0/src/clock.bend as Clock
import Base

361# year, month, day, hour, minute, second and ISO weekday of seconds since
362# the epoch, in UTC
363def time.fields(+secs: U32) -> U32 & U32 & U32 & U32 & U32 & U32 & U32:
364  time.fields.of(time.civil((secs / 86400 : U32)), (secs % 86400 : U32),
365    time.weekday((secs / 86400 : U32)))

Uses (7)

Used by (1)