def time.fields
import ezsys@0.1.0.0/src/clock.bend as Clockimport 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)))