From Wiki if year module 400 is 0 then is_leap_yearelse if year module 100 is 0 then not_leap_yearelse if year module 4 is 0 then is_leap_yearelse not_leap_year