The Lost Days

Time: Clocks, Calendars and How We Measure It

Course 1 ยท Chapter 4 ยท Julian, Gregorian and the lost days

On Thursday 4 October 1582 the people of Rome went to bed. When they woke, it was Friday 15 October. Nobody slept for ten days: the calendar simply jumped, and the labels 5 to 14 October never existed in Rome that year. Britain did the same trick 170 years later, on 2 September 1752, and woke up on the 14th. Why would a country delete days on purpose? Because Time: Clocks, Calendars and How We Measure It 3 ended with a problem: a year is 365.2422 days, a messy fraction, and every solar calendar has to carry the extra 0.2422 of a day somewhere. This chapter follows the calendar most of the world uses today, from a muddle in ancient Rome to a repair job in 1582, and then through the slow, stubborn way countries adopted it.

What was run, and what to trust
Every Python snippet in this chapter and in the three exercise solutions was executed, and the output in the comments is what Python printed. The day-number checks compare the Julian rule against Python's own (Gregorian) calendar, so they confirm the 10-day and 11-day gaps independently. The historical details (the pontiffs' extra month, Caesar's 445-day year, Sosigenes, the correction under Augustus, the 1582 bull, the dates different countries switched) are the standard accounts and were written from memory, not looked up again while writing. Treat the ancient dates as "around then" and check any single date before relying on it. The exact length of the tropical year changes very slightly over the centuries; this chapter uses 365.2422 throughout.

The Roman Muddle

The early Roman calendar was lunar in spirit: months followed the Moon, and a normal year had 355 days. That is 10.2422 days short of the solar year (365.2422 - 355), so left alone the seasons would race ahead of the calendar by about a third of a month every year. To pull it back, the priests in charge of the calendar, the pontiffs, inserted an extra month, Mercedonius, after 23 February in some years. The textbook pattern was 22 days in one year and 23 days in another, on alternate years. Let us see what that pattern would give if it were followed perfectly, and how a very bad year was finally repaired.

year = 355 cycle = [355, 355 + 22, 355, 355 + 23] average = sum(cycle) / 4 print("four Roman years:", sum(cycle), "days, average", average) print("too long by", round(average - 365.2422, 4), "days a year") print("Year of Confusion, 46 BC:", 355 + 23 + 67, "days") # four Roman years: 1465 days, average 366.25 # too long by 1.0078 days a year # Year of Confusion, 46 BC: 445 days

Four years of 355 days plus the two extra months come to 4 x 355 + 22 + 23 = 1465 days, an average of 366.25 days a year. That is a whole day too long every year, so even a perfectly followed pattern is not a good one. And it was not followed perfectly. The pontiffs decided when to insert the extra month, and a pontiff could add one to keep a friendly official in office a little longer, or leave it out to cut short the term of a rival. By the middle of the first century BC the calendar was around three months out of step with the seasons: a harvest festival could be marked on the calendar in a month when the grain was still green.

Caesar's Fix: the Julian Calendar

In 46 BC Julius Caesar, with the help of an Alexandrian astronomer usually named as Sosigenes, cut the knot. Two steps:

  1. Reset the clock. The year 46 BC was stretched to 445 days (the ordinary 355, the usual extra month of 23 days, and two more extra months adding 67 days) to pull the calendar back into line with the seasons. It is remembered as the "year of confusion". 355 + 23 + 67 = 445.
  2. Fix the length. From 45 BC the year was 365 days, with a leap day added every fourth year. That makes an average of (3 x 365 + 366) / 4 = 1461 / 4 = 365.25 days. The Egyptian civil year of exactly 365 days (Time: Clocks, Calendars and How We Measure It 3) had no leap day and drifted; the Julian calendar adds the missing quarter-day.

The leap day was not put at the end of February. The Romans counted days backwards from fixed dates, and the extra day was made by repeating the day called "the sixth day before the Kalends of March", which is why a leap year was called a bissextile year ("twice sixth"). The effect is the same as adding 29 February. The calendar was named the Julian calendar after Caesar. An early hiccup is usually reported: the priests counted "every fourth year" in a way that put leap days every third year at first, and the emperor Augustus corrected this by leaving out a few leap years until the pattern settled (traditionally around AD 8).

Roman (before 46 BC)JulianGregorian
Rule355 days plus an extra month the pontiffs decidea leap day every 4th yearevery 4th year, except centuries not divisible by 400
Average yearabout 366.25 days if the pattern is followed365.25 days365.2425 days
Too long byabout 1 day per year0.0078 day per year0.0003 day per year
One day out afterabout a yearabout 128 yearsabout 3333 years

The Slow Drift

The Julian year of 365.25 days is a good approximation to 365.2422, but it is a little too long. The error is 365.25 - 365.2422 = 0.0078 of a day each year, which is 0.0078 x 24 x 60 = 11.2 minutes. Tiny, but it never stops adding up. Run the numbers:

TROPICAL = 365.2422 calendars = {"Julian": 365.25, "Gregorian": 365.2425} for name, length in calendars.items(): error = length - TROPICAL print(name, "| error per year", round(error, 4), "d | one day out every", round(1 / error), "years") print("Julian slip, 325 to 1582:", round((1582 - 325) * (365.25 - TROPICAL), 1), "days") print("one day per", round(1 / (365.25 - TROPICAL), 1), "years") # Julian | error per year 0.0078 d | one day out every 128 years # Gregorian | error per year 0.0003 d | one day out every 3333 years # Julian slip, 325 to 1582: 9.8 days # one day per 128.2 years

One day of error every 128 years: the Julian calendar's date for the equinox slides one day earlier every century and a bit. That mattered to the Church because Easter is defined by the spring equinox. The Council of Nicaea in AD 325 is traditionally said to have settled the rules with the equinox on 21 March. From 325 to 1582 is 1257 years, and 1257 x 0.0078 = 9.8 days: by 1582 the real equinox was falling around 11 March on the Julian calendar. Left alone, Easter would keep creeping earlier in the calendar year, away from the season it was meant to celebrate. People had noticed for centuries and several scholars had proposed repairs. Eventually the Church, which had the authority and the motive, acted.

The Gregorian Fix of 1582

In February 1582 Pope Gregory XIII issued a decree (the bull Inter gravissimas), built on the work of the astronomer Aloysius Lilius and the Jesuit mathematician Christopher Clavius. It did two things:

  1. Drop 10 days once, so the equinox returned to 21 March, where it had been at Nicaea. In October 1582, 4 October was followed directly by 15 October.
  2. Change the leap-year rule so the drift would not start again. Century years such as 1700 and 1800 stop being leap years, unless the century is divisible by 400.
Rome, October 1582: the days run on, only the labels jump Wed 3 Oct -> Thu 4 Oct -> Fri 15 Oct -> Sat 16 Oct ^ labels 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 never used

The new rule in full: a year is a leap year if it is divisible by 4, except that century years are leap years only if they are divisible by 400. So 1600 and 2000 were leap years; 1700, 1800 and 1900 were not; 2100 will not be, but 2400 will. Over 400 years the rule leaves out 3 of the 100 leap years the Julian rule would have: 400 x 365 + 97 = 146097 days, an average of 146097 / 400 = 365.2425 days. Here is the whole comparison in code.

def leap_julian(y): return y % 4 == 0 def leap_gregorian(y): return y % 4 == 0 and (y % 100 != 0 or y % 400 == 0) for name, rule in [("Julian", leap_julian), ("Gregorian", leap_gregorian)]: leaps = sum(rule(y) for y in range(2001, 2401)) days = 400 * 365 + leaps print(name, "| leap years in 400:", leaps, "| days:", days, "| average year:", days / 400) for y in (1600, 1700, 1800, 1900, 2000, 2100, 2400): print(y, "Julian leap?", leap_julian(y), "| Gregorian leap?", leap_gregorian(y)) # Julian | leap years in 400: 100 | days: 146100 | average year: 365.25 # Gregorian | leap years in 400: 97 | days: 146097 | average year: 365.2425 # 1600 Julian leap? True | Gregorian leap? True # 1700 Julian leap? True | Gregorian leap? False # 1800 Julian leap? True | Gregorian leap? False # 1900 Julian leap? True | Gregorian leap? False # 2000 Julian leap? True | Gregorian leap? True # 2100 Julian leap? True | Gregorian leap? False # 2400 Julian leap? True | Gregorian leap? True

The error left is 365.2425 - 365.2422 = 0.0003 of a day a year, which takes about 1 / 0.0003 = 3333 years to add up to a day. (The true year itself changes a little over thousands of years, so the figure is only a rough guide.) For everyday purposes the Gregorian calendar is simply correct. Keep one thing from the table of years in mind for the rest of the chapter: 1700, 1800 and 1900 were Julian leap years but not Gregorian ones.

The Calendar Wars: Who Switched When

A pope could order Catholic countries to change. Everyone else had to decide for themselves, and for many Protestant and Orthodox countries, taking a calendar from the pope looked like a poor idea. The result was a patchwork lasting more than three centuries: for a long time two different dates could be written on the same day, and letters often carried both ("Old Style" for Julian and "New Style" for Gregorian). The dates below are approximate, as usually quoted.

WhereSwitchedDays dropped
Italian states, Spain, PortugalOctober 158210
FranceDecember 158210
Protestant German states, Denmark, most of the Netherlandsaround 170011
Britain and its coloniesSeptember 175211
Sweden175311
RussiaFebruary 191813
Greece192313
Japan, China1873 and 1912not applicable: they changed from a different calendar

The "days dropped" column grows with time: 10, then 11, then 13. Why? Each time the Gregorian calendar skips a century leap day that the Julian calendar keeps, the gap widens by one day. The Julian calendar kept 1700, 1800 and 1900 as leap years and the Gregorian calendar did not. The gap between the two (Gregorian date minus Julian date) on any date from 1 March of a given year is:

gap = (year // 100) - (year // 400) - 2, where // means divide and drop the remainder.

Try 1582: 15 - 3 - 2 = 10. For 1752: 17 - 4 - 2 = 11. For 1900: 19 - 4 - 2 = 13. The jump happens on 1 March of 1700, 1800 and 1900, because the missing leap day would have been 29 February. The next widening comes on 1 March 2100, taking the gap to 14. Python can check the formula against exact day counts:

from datetime import date def jdn_julian(y, m, d): a = (14 - m) // 12 y2, m2 = y + 4800 - a, m + 12 * a - 3 return d + (153 * m2 + 2) // 5 + 365 * y2 + y2 // 4 - 32083 def gap(year): # Gregorian date minus Julian date, for dates from 1 March of 'year' return year // 100 - year // 400 - 2 for y in (325, 1582, 1752, 1900, 2000, 2100): print(y, "gap", gap(y), "days") # check against Python's own (Gregorian) calendar j = jdn_julian(1582, 10, 4) g = date(1582, 10, 14).toordinal() + 1721425 print("Julian 4 Oct 1582 is Gregorian 14 Oct:", j == g) print("Julian 3 Sep 1752 is Gregorian 14 Sep:", jdn_julian(1752, 9, 3) == date(1752, 9, 14).toordinal() + 1721425) print(date(1582, 10, 15).strftime("%A"), date(1752, 9, 14).strftime("%A")) # 325 gap 1 days # 1582 gap 10 days # 1752 gap 11 days # 1900 gap 13 days # 2000 gap 13 days # 2100 gap 14 days # Julian 4 Oct 1582 is Gregorian 14 Oct: True # Julian 3 Sep 1752 is Gregorian 14 Sep: True # Friday Thursday

The checks agree: Julian 4 October 1582 is the Gregorian 14 October, and the next day, Julian 5 October, is the Gregorian 15 October (and so Thursday was followed by Friday: only the labels jumped, never the weekdays). The same check for Britain shows that Julian 3 September 1752 is Gregorian 14 September, so the dropped labels there were 3 to 13 September, 11 of them.

Britain's Short Years

The British change came with a second shift, which is why the story is a little more complicated than "11 days". The Calendar (New Style) Act of 1750 did two things. It dropped 11 days in September 1752, and it moved the start of the legal year from 25 March (Lady Day) to 1 January. Because the new rule began with the year 1752, the year 1751 was shortened:

from datetime import date short_1751 = (date(1751, 12, 31) - date(1751, 3, 25)).days + 1 print("British year 1751 (25 March to 31 December):", short_1751, "days") print("British year 1752:", 366 - 11, "days (leap year, 11 days dropped)") # British year 1751 (25 March to 31 December): 282 days # British year 1752: 355 days (leap year, 11 days dropped)

The year 1751 ran only from 25 March to 31 December, 282 days (7 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 = 282), and 1752 lost 11 days from a leap year's 366, leaving 355. A story says that crowds rioted with the cry "Give us our eleven days", believing the government had stolen 11 days of their lives. Historians have found little evidence for the riots, and the tale seems to owe much to a satirical painting. Real concerns were more practical: rents, wages and interest had to be adjusted, and people argued about whether a quarter's rent was due on the old date or the new one.

The leftover mess shows up in historical records. George Washington's birthday is given as 11 February 1731 in the old British system and 22 February 1732 in the new one. The Russian "October Revolution" took place on 25 October 1917 in the calendar Russia was using, which is 7 November in the Gregorian calendar, a difference of 13 days. Some Orthodox churches still keep Julian dates for their feasts, which is why their Christmas lands on 7 January: 25 December plus 13 days of gap. Exercise 3 works these conversions out.

Common mistakes
Saying the Gregorian reform "dropped 10 days" everywhere (it dropped 10 in 1582 but 11 in Britain in 1752 and 13 in Russia in 1918, because the gap widens with each skipped century leap day); assuming days of the week were skipped (they were not: only the date labels jumped); believing every year divisible by 100 is a leap year (1900 was not, 2000 was); treating 2100 as a leap year; forgetting that the British year used to start on 25 March when reading old dates; and assuming the whole world changed in 1582 (many places waited centuries).
Exercise 1

Write two functions, one for the Julian leap-year rule and one for the Gregorian rule. List the years between 1580 and 1720 where they disagree. Then count the leap years in 400 consecutive years under each rule and report the average year length, the yearly error against 365.2422 and how many years it takes to build up one day of error.

๐Ÿ“„ View solution
Exercise 2

Use the formula gap = year // 100 - year // 400 - 2 to print the gap between the calendars for 325, 1582, 1700, 1752, 1900, 2000 and 2100. Check it against exact day numbers for a handful of dates, and confirm that Julian 5 October 1582 is the Gregorian 15 October and that Julian 3 September 1752 is the Gregorian 14 September.

๐Ÿ“„ View solution
Exercise 3

Convert these Julian dates to Gregorian: Washington's birthday (11 February 1732 counted from 1 January), the Russian "October" Revolution (25 October 1917) and 25 December 2025. Then work out how many days the British year 1751 had, running from 25 March to 31 December, and how many days 1752 had.

๐Ÿ“„ View solution

Quick Reference

  • Roman calendar: 355-day year plus an extra month decided by the pontiffs; by the 40s BC it was about three months adrift
  • Julian calendar (45 BC): 365 days plus a leap day every 4th year = 365.25 days; too long by 0.0078 day a year, one day out every 128 years
  • Drift by 1582: 1257 years since Nicaea x 0.0078 = about 9.8 days, so the equinox fell around 11 March
  • Gregorian rule (1582): leap if divisible by 4, except centuries not divisible by 400; 97 leap years in 400 = 365.2425 days; one day out every 3333 years or so
  • Gap, Gregorian minus Julian: year // 100 - year // 400 - 2 (from 1 March): 10 in 1582, 11 in 1752, 13 from 1900, 14 from 1 March 2100
  • Switch dates (approximate): Catholic Europe 1582, Britain 1752 (2 September to 14 September), Russia 1918, Greece 1923
  • Britain 1751 and 1752: 1751 had only 282 days (25 March to 31 December); 1752 had 355
Coming next
Time: Clocks, Calendars and How We Measure It 5 looks at the pieces a calendar is built from: why there are seven days in a week, where the months got their names, and how years have been numbered, from the founding of Rome to the reigns of kings and emperors.