RosettaCodeData/Task/Leap-year/DuckDB/leap-year.duckdb
2025-08-11 18:05:26 -07:00

2 lines
107 B
Text

create or replace function is_leap_year(y) as
(y%4) == 0 and (y < 1582 or (y%400) == 0 or (y%100) != 0);