Leap Year
leap year
A leap year is a calendar year containing an extra day (February 29), extending it to 366 days in order to keep the calendar aligned with Earth's orbital period around the Sun.
gregorian calendar
The Gregorian calendar is a solar calendar introduced by Pope Gregory XIII in 1582. It refined the Julian calendar's leap-year rule so that the average year length over 400 years is 365.2425 days, reducing the drift relative to the tropical year (365.2422 days) to just one day in 3,236 years. Today it is the internationally recognized civil calendar in virtually every country.
The Julian calendar (established 46 BC) assumed a year of 365.25 days, but the small annual error of about 11 minutes and 14 seconds accumulated to roughly 10 days over 1,600 years. This drift caused problems for computing the date of Easter. Pope Gregory XIII corrected it by decreeing that October 4, 1582 would be immediately followed by October 15 (removing 10 days) and by modifying the leap-year rule for century years.
Catholic countries adopted the reform in 1582, but Protestant and Orthodox nations resisted what they saw as a papal calendar. Britain switched in 1752 (dropping 11 days), Japan in 1873 (jumping from the traditional lunisolar calendar), Russia in 1918 (dropping 13 days), and Greece in 1923. When handling historical dates in software, developers must account for which calendar was in effect at a given time and place.
Was this article helpful?
leap year
A leap year is a calendar year containing an extra day (February 29), extending it to 366 days in order to keep the calendar aligned with Earth's orbital period around the Sun.
iso-8601
An international standard for representing dates and times in an unambiguous, machine-readable format.
epoch
A fixed reference point in time from which a system measures elapsed time, most commonly January 1, 1970 for Unix systems.
Leap years are not simply every fourth year. The Gregorian calendar uses a 400-year cycle with two exception rules to keep the calendar aligned with Earth's orbit. This article explains the astronomy behind the rules, the implementation pitfalls programmers face, and the looming year 4000 problem.
The Gregorian calendar, the Islamic calendar, and the Hebrew calendar use fundamentally different astronomical bases. This article explains the difference between solar, lunar, and lunisolar calendars, why each civilization chose its system, and how modern holidays still mix the influences of all three.
Calendars are inventions, not natural facts. The shift from the Julian to the Gregorian calendar took centuries to complete, and many alternative calendars remain in active use. This article surveys the principles, the 1582 reform, and the calendars still alive in the 21st century.