2 lines
107 B
Text
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);
|