Adding an extra day to the calendar every four years compensates for the fact that a solar year is almost 6 hours longer than 365 days. The algorithm for leap year:
if year modulo 400 is 0 then leap
else if year modulo 100 is 0 then no_leap
else if year modulo 4 is 0 then leap
else no_leap
Thus, [...]
Popularity: 4% [?]