February 2012
26 posts
leap year algorithm
if year modulo 4 is 0
then
if year modulo 100 is 0
then
if year modulo 400 is 0
then
is_leap_year
else
not_leap_year
else is_leap_year
else not_leap_year
[via wikipedia]
1 tag
1 tag
1 tag
1 tag
1 tag
1 tag
1 tag