About Any Date
Pick any date from the year 1 to 9999 on the brass calendar: type into its cards, turn them with the knobs, or click a day on the month sheet. It tells you the weekday, and the almanac page shows how to work it out in your head with John Conway's Doomsday rule. The other pages cover leap years, Easter Sunday, Friday the 13ths, the days between two dates (and your age in days), and Britain's change of calendar in 1752. Keys: ← → a day, ↑ ↓ a week, Page Up Page Down a month, T today.
THE STORY
Julius Caesar's calendar, which took effect in 45 BC, gave every fourth year a leap day, an average of 365.25 days. The year the seasons keep is about 11 minutes shorter, so by the 1500s the spring equinox had slipped about ten days, to around 11 March, and Easter with it. Pope Gregory XIII's reform of 1582 dropped ten days (Thursday 4 October was followed by Friday 15 October in Italy, Spain, Portugal and Poland) and stopped century years being leap years unless they divide by 400. That makes 97 leap years every 400 years, an average of 365.2425 days.
Protestant Britain and its colonies waited. By the Calendar (New Style) Act of 1750 the year began on 1 January from 1752 (the legal year had begun on 25 March), and eleven days were dropped: Wednesday 2 September 1752 was followed by Thursday 14 September. The weekdays ran on unbroken. Stories of crowds rioting and shouting "Give us our eleven days" are largely a myth: the slogan appears on a placard in William Hogarth's painting An Election Entertainment (1755), mocking the election campaign of 1754, and the riots seem to have grown out of that later. One trace of the change survives: Britain's tax year still starts on 6 April, the old quarter day of 25 March moved on by the eleven days, and by one more when 1800 was a leap year in the old calendar but not the new.
John Horton Conway devised the Doomsday rule in the early 1970s, building on a method of Lewis Carroll's, and described it in Winning Ways for your Mathematical Plays (1982). He practised it daily: his computer would ask him the weekdays of random dates when he logged in, and he could answer in about two seconds. The leap year check on the Leap year page, the three-rule check, is a short Python function, and the calendar layout follows Python's calendar.month, with Monday first.
HOW IT WORKS
Every day is turned into a day count (a Julian Day Number), using whole-number formulas for either calendar, so the weekday comes from simple division by 7. The page never uses the browser's own date maths, which only knows the Gregorian calendar.
Britain (the default) uses the Julian calendar up to 2 September 1752 and the Gregorian from 14 September 1752, as Britain did; 3 to 13 September 1752 don't exist. Gregorian runs today's calendar back to the year 1, as historians and most software do (the "proleptic" Gregorian calendar), even before it was invented. Both count back as if their rules had always been kept, although the leap years were miscounted in Rome for some decades after Caesar. Years here always begin on 1 January: before 1752 a British document would date 1 February 1750 as 1749, or "1749/50".
Easter uses the "Anonymous Gregorian algorithm", sent by an unnamed reader in New York to the journal Nature in 1876, and for Julian years Jean Meeus's Julian method, which matches the Church tables Britain used before 1753 (and the Orthodox Easter still kept today). Ages in years, months and days are counted on the calendar as written, as the original Python age script does; days between dates are exact.
FURTHER WATCHING AND READING