Weeks, Months, Eras

Time: Clocks, Calendars and How We Measure It

Course 1 ยท Chapter 5 ยท Weeks, months and eras

Look at a calendar and ask what in it comes from the sky. The day comes from the Earth's spin, the month from the Moon, the year from the Sun. The week comes from nothing in the sky at all: seven days does not divide into a month or a year, and no heavenly body repeats every seven days. Yet it is the most stubborn rhythm we have. When the Julian calendar gave way to the Gregorian in Time: Clocks, Calendars and How We Measure It 4, whole date labels vanished, but the weekday never wavered: Thursday 4 October 1582 was followed by Friday 15 October. This chapter looks at the pieces a calendar is stitched together from: weeks, months and the numbers we hang on years.

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 arithmetic (day counts, week counts, year conversions) is checked by that code. The historical origins of the week and of month names are partly traditional and partly debated; where scholars disagree, the text says so.

Where the Seven-Day Week Came From

Nobody knows for certain, but two threads are clear. The first is the Moon. A lunar month is 29.53 days, and a quarter of it is 29.53 / 4 = 7.38 days, so the four phases (new, first quarter, full, last quarter) fall about seven days apart. Babylonian records treat certain days of the lunar month, around the 7th, 14th, 21st and 28th, as special. The second thread is Jewish: well before the Christian era a seven-day cycle ending in a Sabbath was running as a pure counting cycle, rolling on week after week whatever the Moon did. A week that does not restart with each month is the real invention.

The names came from a third source. Greek-speaking astronomers of the Hellenistic world knew seven wandering bodies: Saturn, Jupiter, Mars, the Sun, Venus, Mercury and the Moon. Ordered from slowest-moving to fastest-moving against the stars, that is the list just given. By around the first century AD a planetary week was in use in the Roman world, with the days named after those seven. The way the order was chosen is a neat puzzle, and the arithmetic is simple:

  1. Give each of the 24 hours of a day to one planet in turn, following the list and wrapping round: Saturn, Jupiter, Mars, Sun, Venus, Mercury, Moon, Saturn again, and so on.
  2. Name each day after the planet that rules its first hour.
  3. Because 24 = 3 x 7 + 3, after 24 hours the list has gone round three full times and then three places further. So the next day starts three places along the list.
planets = ["Saturn", "Jupiter", "Mars", "Sun", "Venus", "Mercury", "Moon"] print("24 mod 7 =", 24 % 7) day_rulers = [planets[(24 * day) % 7] for day in range(7)] print(day_rulers) # 24 mod 7 = 3 # ['Saturn', 'Sun', 'Moon', 'Mars', 'Mercury', 'Jupiter', 'Venus']

Count three places along from Saturn: Jupiter, Mars, Sun. Three more from the Sun: Venus, Mercury, Moon. Three more from the Moon (wrapping round to the start): Saturn, Jupiter, Mars. The sequence Saturn, Sun, Moon, Mars, Mercury, Jupiter, Venus is exactly the order of the days from Saturday to Friday. Because 3 and 7 share no common factor, a step of three visits all seven planets before repeating, which is why every planet gets exactly one day.

The names survive in many languages. English Saturday, Sunday and Monday are Saturn's day, the Sun's day and the Moon's day directly. For Tuesday to Friday, English used Germanic gods in place of the Roman ones: Tiw (matching Mars), Woden (Mercury), Thor (Jupiter) and Frigg (Venus). French keeps the Roman gods: mardi (Mars), mercredi (Mercury), jeudi (Jupiter), vendredi (Venus).

The week was fixed in public life by religion and law. Judaism, Christianity and Islam each gave one day of the seven a special status (Saturday, Sunday and Friday). In AD 321 the emperor Constantine made Sunday a day of rest in the cities of the Roman Empire. A cycle backed by religion spread with the faiths and never lost its place. This is also why the calendar changes in Time: Clocks, Calendars and How We Measure It 4 left the weekday alone: weekdays had been counted without a break from long before 1582, and nobody wanted to disturb the rhythm of a day of worship.

Months and Their Names

The months are the oldest unit in this chapter, but the names we use are Roman and carry fossils of an earlier calendar. According to Roman tradition the original year had ten months, beginning in March and ending in December, followed by a stretch of winter days with no month name at all. The tradition is old but not certain: ancient writers disagreed about details. What is plain is the evidence in the names themselves. September, October, November and December mean 7th, 8th, 9th and 10th month (from the Latin septem, octo, novem, decem), which only makes sense if March is month 1.

months = ["March", "April", "May", "June", "Quintilis", "Sextilis", "September", "October", "November", "December"] for number in (5, 6, 7, 8, 9, 10): print(number, months[number - 1]) print("ten months, 304 days; 365 - 304 =", 365 - 304, "days left over (the winter gap)") print("31-day months:", 7, "| 30-day:", 4, "| February: 28 | check:", 7 * 31 + 4 * 30 + 28) # 5 Quintilis # 6 Sextilis # 7 September # 8 October # 9 November # 10 December # ten months, 304 days; 365 - 304 = 61 days left over (the winter gap) # 31-day months: 7 | 30-day: 4 | February: 28 | check: 365

A ten-month year of 304 days (the commonly reported total) leaves 365 - 304 = 61 days spare, which fits the story of an unnamed winter gap. January and February were later added, and eventually placed at the front of the year, so that the "7th" month became the 9th, the "8th" the 10th and so on. That is why the names have been two numbers wrong ever since.

MonthNamed forNote
JanuaryJanus, god of doorways and beginningsa fitting name for the first month once the year start moved
Februaryfebrua, Roman purification ritesthe short winter month where leap days live
MarchMars, god of warthe original first month
April, May, Juneorigins debatedMay and June may honour Maia and Juno, but ancient writers did not agree
JulyJulius Caesarrenamed from Quintilis (the "fifth") in 44 BC, after his death
AugustAugustusrenamed from Sextilis (the "sixth") in 8 BC
September to Decemberthe numbers 7 to 10two places out of step since January and February were added

You may have heard that August has 31 days because Augustus wanted to be as important as Julius Caesar and took a day from February. It makes a good story, but historians doubt it: the Julian calendar's month lengths seem to have been set in 45 BC, before Augustus. What is certain is the sum. Seven months of 31 days, four of 30 and one of 28 give 7 x 31 + 4 x 30 + 28 = 217 + 120 + 28 = 365, as the code above confirms.

Numbering the Years

A calendar tells you the day within a year; an era tells you which year. Every culture picked a starting point that mattered to it. Four systems cover most of the history you will meet:

SystemCounts fromExample
AUC (ab urbe condita)the traditional founding of Rome, 753 BCAD 1 = 754 AUC; 2026 = 2779 AUC
AD / BC (and CE / BCE)a calculated date for the birth of JesusCE and BCE are the same numbers with neutral names
Regnal yearsthe accession of the current ruler"in the 3rd year of Queen Anne"
Japanese eras (nengo)a new era name for each reignReiwa 1 = 2019

The Romans themselves often named a year by its two consuls ("in the consulship of...") and only sometimes counted from the founding of the city, which the scholar Varro placed in 753 BC. The AD system is later: in AD 525 a monk named Dionysius Exiguus, preparing Easter tables, proposed numbering years from the incarnation of Jesus, placed so that AD 1 came 754 years after the founding of Rome. The system was taken up gradually, helped by the English monk Bede, and became standard in Europe over the following centuries. Historians today generally think Jesus was born a few years earlier than Dionysius's calculation implies, but the labels were never corrected, since renumbering would only cause confusion.

There is one famous trap. Dionysius had no number zero (Roman numerals did not have one), so the year before AD 1 is 1 BC. There is no year 0, which has a side effect: the span from 1 BC to AD 1 is a single year. Astronomers, who need their arithmetic to work smoothly, number the years with a year 0. In that scheme 1 BC is 0, 2 BC is -1, and in general astronomical year = 1 - BC year. So the "year of confusion" of 46 BC in Time: Clocks, Calendars and How We Measure It 4 is -45 to an astronomer.

def ad_to_auc(year): return year + 753 def bc_to_astronomical(bc): return 1 - bc print("AD 525 (Dionysius's own time):", ad_to_auc(525), "AUC") print("AD 1 =", ad_to_auc(1), "AUC") print("2026 =", ad_to_auc(2026), "AUC") print("1 BC -> astronomical year", bc_to_astronomical(1)) print("45 BC -> astronomical year", bc_to_astronomical(45)) # AD 525 (Dionysius's own time): 1278 AUC # AD 1 = 754 AUC # 2026 = 2779 AUC # 1 BC -> astronomical year 0 # 45 BC -> astronomical year -44

The rule for AUC is "add 753" for an AD year, because AD 1 = 754. For a BC year, subtract it from 754: 753 BC = 754 - 753 = 1 AUC.

Counting by reigns is the oldest and most natural method: you know who is king, so you count his years. English statutes were dated that way until 1962. Japan still does it. A new era name (nengo) is chosen when an emperor takes the throne: Showa began in 1926, Heisei in 1989 and Reiwa on 1 May 2019. To convert a Gregorian year to an era year, subtract the era's first year and add one, since the first year of an era is year 1: 2026 - 2019 + 1 = Reiwa 8. In the year of a change two eras share the year, since the switch happens partway through (Heisei 31 and Reiwa 1 are both parts of 2019). The months and days stay Gregorian; only the year label is the era.

Counting Weeks: ISO 8601

Businesses and logistics often need to say "week 46" and mean the same week everywhere. The international standard ISO 8601 gives the rules:

  1. Weeks run from Monday (day 1) to Sunday (day 7).
  2. Week 1 of a year is the week that contains that year's first Thursday. Equivalently, it is the week containing 4 January.
  3. A date is written year-Wweek-day, for example 2026-W46-1.

Why Thursday? A Monday-to-Sunday week has its Thursday in the middle, and whichever year holds the Thursday holds at least four of the week's seven days. So each week belongs wholly to one year. A side effect is that the first days of January can belong to week 52 or 53 of the old year, and the last days of December can belong to week 1 of the next:

from datetime import date for d in (date(2026, 11, 9), date(2026, 12, 31), date(2027, 1, 1), date(2027, 1, 4), date(2025, 12, 29)): year, week, day = d.isocalendar() print(d, "->", f"{year}-W{week:02d}-{day}", d.strftime("%A")) # 2026-11-09 -> 2026-W46-1 Monday # 2026-12-31 -> 2026-W53-4 Thursday # 2027-01-01 -> 2026-W53-5 Friday # 2027-01-04 -> 2027-W01-1 Monday # 2025-12-29 -> 2026-W01-1 Monday

1 January 2027 is a Friday, and its week holds Thursday 31 December 2026, so it belongs to week 53 of 2026. Meanwhile Monday 29 December 2025 already counts as week 1 of 2026. A year has 52 or 53 ISO weeks: 53 when 1 January is a Thursday, or in a leap year when it is a Wednesday. Over the 400-year Gregorian cycle the totals are neat: 146097 days is exactly 20871 weeks (146097 / 7 = 20871), so the Gregorian calendar repeats its weekdays every 400 years. Of those 400 years, 71 have 53 weeks (52 x 400 + 71 = 20871).

Other Weeks That Were Tried

The seven-day week is a convention, and people have tried others.

WeekWhere and whenWhat happened
8 daysRoman market cycle (nundinae)a market day every eighth day (called the ninth by Roman inclusive counting); faded as the seven-day week spread
10 daysFrench Republican calendar, from 1793each month was three ten-day decades, with one rest day in ten; abolished by Napoleon from 1 January 1806
5 daysSoviet Union, from 1929a continuous work week to keep factories running; disliked and replaced
6 daysSoviet Union, from 1931replaced the 5-day week; the seven-day week came back in 1940

The French ten-day week gave workers one day off in ten instead of one in seven, and it was never popular. The Soviet experiments caused trouble for a different reason: with staggered rest days, families and friends often had different days off, so ordinary social life suffered. A week works because everyone shares it, and the seven-day cycle won largely because the surrounding world already used it.

Common mistakes
Believing the week comes from the Moon or the Sun (it is a counting cycle, with a loose link to the Moon's quarters); forgetting that there is no year 0 between 1 BC and AD 1; mixing up the astronomical year (1 BC = 0) with the BC label; assuming ISO week 1 always starts on 1 January (it is the week holding the first Thursday); and assuming every year has 52 weeks (some have 53).
Exercise 1

Write a short program that assigns the 24 hours of a day to the planets in the ancient order (Saturn, Jupiter, Mars, Sun, Venus, Mercury, Moon) and names each of seven consecutive days after the planet ruling its first hour, starting from Saturn's day. Show that 24 mod 7 = 3 explains the pattern, and check your result against the real order of the weekdays.

๐Ÿ“„ View solution
Exercise 2

Write functions to convert an AD year to AUC, a BC year to AUC, a BC year to astronomical numbering, and a Gregorian year to a Japanese era year (Meiji 1868, Taisho 1912, Showa 1926, Heisei 1989, Reiwa 2019). Try 2026 AD, 753 BC, 44 BC, 1926, 1989 and 2019.

๐Ÿ“„ View solution
Exercise 3

Write your own function that returns the ISO week year and week number of a date using the first-Thursday rule, and compare it with Python's isocalendar() for every day from 1900 to 2100. Then list the 53-week years from 2015 to 2040, and show that 400 Gregorian years contain exactly 20871 weeks, with 71 of those years having 53 weeks.

๐Ÿ“„ View solution

Quick Reference

  • Week: a pure counting cycle; a quarter of the lunar month is 29.53 / 4 = 7.38 days, so the Moon is a loose cousin, not the cause
  • Planetary week: 24 mod 7 = 3, so each day starts three places on in the list Saturn, Jupiter, Mars, Sun, Venus, Mercury, Moon, giving Saturn, Sun, Moon, Mars, Mercury, Jupiter, Venus
  • Months: September to December are the 7th to 10th months of the early March-start year; 7 x 31 + 4 x 30 + 28 = 365
  • AUC: AD year + 753 (AD 1 = 754 AUC); BC year: 754 - BC
  • Astronomical year: 1 - BC year (1 BC = 0); there is no year 0 on the BC/AD scale
  • Japanese era year: Gregorian year - era start year + 1 (2026 = Reiwa 8)
  • ISO 8601: Monday start, week 1 holds the first Thursday (contains 4 January); 52 or 53 weeks a year; 146097 days = 20871 weeks per 400 years, 71 of which are 53-week years
  • Other weeks: 8-day Roman, 10-day French Republican (1793 to 1806), 5-day and 6-day Soviet (1929 to 1940)
Coming next
Time: Clocks, Calendars and How We Measure It 6 moves from the calendar to the machine: the first mechanical clocks of medieval Europe, why bells came before faces, and the escapement that turned a falling weight into a steady count.