When is the next leap year?
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).[2][3] 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
The following pseudocode determines whether a year is a leap year or a common year in the Gregorian calendar (and in the proleptic Gregorian calendar before 1582). The year variable being tested is the integer representing the number of the year in the Gregorian calendar.