def days_civil

cswap-bend-cli@0.1.0.0 · daemon/sess.bend:130

import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sess
import Base

130# days since 1970-01-01 of a civil date (years from 1970 on).
131def days_civil(+y: U32, +m: U32, +d: U32) -> U32:
132  days2(sel_u(U32.is_le(m, 2), (y - 1 : U32), y), m, d)

Uses (5)

Used by (1)