Leap year
The name "leap year" probably comes from the fact that while a fixed date in the Gregorian calendar normally advances one day of the week from one year to the next, the day of the week in the 12 months following the leap day (from March 1 through February 28 of the following year) will advance two days due to the extra day (thus "leaping over" one of the days in the week). For example, Christmas Day (December 25) fell on a Sunday in 2016, and Monday in 2017, then it fell on Tuesday in 2018, and will fall on Wednesday in 2019 but then "leaps" over Thursday to fall on a Friday in 2020.
Leap year
if ("year" is not divisible by 4) then (it is a common year)
else if ("year" is not divisible by 100) then (it is a leap year)
else if ("year" is not divisible by 400) then (it is a common year)
else (it is a leap year)The algorithm applies to proleptic Gregorian calendar years before 1, but only if the year is expressed with astronomical year numbering. It is not valid for the BC or BCE notation. The algorithm is not necessarily valid for years in the Julian calendar, such as years before 1752 in the British Empire. The year 1700 was a leap year in the Julian calendar, but not in the Gregorian calendar.