def Date.is_leap

bend-kit-time@0.3.0.0 · time.bend:188

import bend-kit-time@0.3.0.0/time.bend as Time
import Base

188def Date.is_leap(+y: U32) -> Bool:
189  Bool.and(U32.is_eq((y % 4 : U32), 0),
190    Bool.or(U32.is_ne((y % 100 : U32), 0), U32.is_eq((y % 400 : U32), 0)))

Uses (7)

Used by (2)