bool = IsLeapYear(nYear)
Recall the rules for leap years :
|•||Years that are divisible by 4 are leap years (1980, 1984, 1988,…).|
|•||If they are divisible by 100, then they are not leap years (1800, 1900).|
|•||But if they are divisible by 400, then they are leap years (1600,2000).|
Most people know the first 2 rules but are unaware of the last rule, causing them to think that 2000 was not supposed to be a leap year.