Task

Determine whether a given year is a leap year in the Gregorian calendar.



See also

 Leap year (wiki)


let isLeapYear = System.DateTime.IsLeapYear
assert isLeapYear 1996
assert isLeapYear 2000
assert not (isLeapYear 2001)
assert not (isLeapYear 1900)