def Date.from_days.doy

bend-time-lib@0.4.0.1 · date.bend:259

import bend-time-lib@0.4.0.1/date.bend as Date
import Base

259def Date.from_days.doy(+doe: U32, +yoe: U32) -> U32:
260  U32.sub(
261    doe,
262    U32.sub(
263      U32.add(U32.mul(365, yoe), U32.div(yoe, 4)),
264      U32.div(yoe, 100)
265    )
266  )

Uses (5)

Used by (1)