Calendar algorithms

Doomsday rule

The Doomsday rule, Doomsday algorithm or Doomsday method is an algorithm of determination of the day of the week for a given date. It provides a perpetual calendar because the Gregorian calendar moves in cycles of 400 years. The algorithm for mental calculation was devised by John Conway in 1973, drawing inspiration from Lewis Carroll's perpetual calendar algorithm. It takes advantage of each year having a certain day of the week upon which certain easy-to-remember dates, called the doomsdays, fall; for example, the last day of February, 4/4, 6/6, 8/8, 10/10, and 12/12 all occur on the same day of the week in any year. Applying the Doomsday algorithm involves three steps: Determination of the anchor day for the century, calculation of the anchor day for the year from the one for the century, and selection of the closest date out of those that always fall on the doomsday, e.g., 4/4 and 6/6, and count of the number of days (modulo 7) between that date and the date in question to arrive at the day of the week. The technique applies to both the Gregorian calendar and the Julian calendar, although their doomsdays are usually different days of the week. The algorithm is simple enough that it can be computed mentally. Conway could usually give the correct answer in under two seconds. To improve his speed, he practiced his calendrical calculations on his computer, which was programmed to quiz him with random dates every time he logged on. (Wikipedia).

Doomsday rule
Video thumbnail

Doomsday: 10 Ways the World Will End - Alien Strategies (Bonus) | History

Experts take a look at the strategies a hostile alien race might use to conquer planet Earth in this bonus scene from "Alien Invasion". #Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great HISTORY shows: http://histv.co/SubscribeHistoryYT Find out more a

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

Doomsday: 10 Ways the World Will End - Three Deadly Forms (Bonus) | History

Imagine that nuclear war has ignited between Russia and the United States. What effect will modern nuclear war have on the planet? The experts discuss in this bonus scene from "Nuclear War". "#Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great HISTORY sh

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

Doomsday: 10 Ways the World Will End - Gravity Trap (Bonus) | History

What would happen to our planet if it was pulled into a massive black hole? The experts discuss in this bonus scene from "Black Hole". #Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great HISTORY shows: http://histv.co/SubscribeHistoryYT Find out more ab

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

Doomsday: 10 Ways the World Will End - What Lies Beneath (Bonus) | History

Imagine that a super-massive volcanic eruption explodes from under Yellowstone National Park, sending rocky molten debris miles into the air. The experts discuss in this bonus scene from "Mega Eruption". "#Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other gre

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

Doomsday: 10 Ways the World Will End - The Overdue Strike (Bonus) | History

Earth is overdue to be hit with a massive solar flare. If it happens, can our infrastructure and energy grid stand up to it? The experts discuss in this bonus scene from "Solar Storm". "#Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great HISTORY shows: h

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

Doomsday: 10 Ways the World Will End - The Asteroid Effect (Bonus) | History

If the asteroid that killed the dinosaurs struck our planet today, would mankind stand a chance at long-term survival? The experts discuss in this bonus scene from "Killer Asteroid". #Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great HISTORY shows: http

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

Doomsday: 10 Ways the World Will End - No More Moderation (Bonus) | History

Turning off the global ocean conveyor belt would have disastrous results for the entire planet. The experts discuss in this bonus scene from "Deep Sea Disaster". #Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great HISTORY shows: http://histv.co/Subscrib

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

DANGEROUS DROUGHTS THREATEN SOCIETY | Doomsday: 10 Ways the World Will End | #Shorts

Droughts pose a huge issue if unable to get fixed, in this clip from Doomsday, β€œDeep Sea Disaster.” #Doomsday10WaystheWorldWillEnd #Doomsday Subscribe for more from Doomsday: 10 Ways the World Will End and other great The HISTORY Channel shows: http://histv.co/SubscribeHistoryYT Check

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Video thumbnail

What Happens When the Doomsday Clock Hits Midnight?

The invasion that Russia has wrongfully started in Ukraine has led to more people talking about the threat of Nuclear war and World War 3. How does the Doomsday Clock relate to all this? Subscribe to Lifespan.io: https://www.youtube.com/LifespanIO and Lifespan News: https://www.youtube.co

From playlist Latest Uploads | Life Noggin

Video thumbnail

Calculate The Day Of The Week For Any Date Until 2099

January 1, 2015 is a Thursday. When will Christmas be in 2015? You can do this in your head! Doomsday Rule http://en.wikipedia.org/wiki/Doomsday_rule Calculating the day New Years (1/1) occurs https://www.youtube.com/watch?v=7iZ1TlqcqVc More efficient methods for determining a year's Do

From playlist Mental Math Tricks

Video thumbnail

Yossi Elran - The Hebrew Calendar Doomsday - G4G14 Apr 2022

My last meeting with John Conway at the Momath conference in New York was also the longest. During a long conversation, Conway told me that when he derived the Doomsday rule for mental calculation of a day of the week given its Gregorian calendar date, he also derived similar calculations

From playlist G4G14 Videos

Video thumbnail

Infinite Chess | Infinite Series

Viewers like you help make PBS (Thank you πŸ˜ƒ) . Support your local PBS Member Station here: https://to.pbs.org/donateinfi How long will it take to win a game of chess on an infinite chessboard? Tweet at us! @pbsinfinite Facebook: facebook.com/pbsinfinite series Email us! pbsinfiniteserie

From playlist An Infinite Playlist

Video thumbnail

32: What is Life? The Amazing R.H. Conway - Richard Buckland UNSW

This is an extension lecture for interested students - nothing examinable, it's just for fun. Lecture 32 "Computing 2" Comp1927 (This upload attempts to fix the audio sync problem in my first attempt.)

From playlist CS2: Data Structures and Algorithms - Richard Buckland

Video thumbnail

How to Figure Out the Day of the Week For Any Date Ever

To learn more about Brilliant, go to https://brilliant.org/BeSmart/ and sign up for free. First 200 people will get 20% off the annual Premium subscription. ↓↓↓ More info and sources below ↓↓↓ You can be a human computer too. Our cheat sheet: http://bit.ly/2rftqkv Want to go NEXT LEVEL?

From playlist Be Smart - LATEST EPISODES!

Video thumbnail

JavaScript Tutorial 12 Doomsday Algorithm

Video Sponsor : http://bit.ly/2xIp2uH [ Free AI, Crypto, & Cybersecurity Videos ] In this part I continue my JavaScript Tutorial and cover the Doomsday Algorithm. I’ll make a JavaScript app that can find the weekday for and date in history and display the steps. John Conway discovered t

From playlist JavaScript Tutorial Real Projects

Video thumbnail

When Is Christmas? Mentally Convert Date To Day Of The Week

January 1, 2016 is a Friday. When will Christmas be in 2016? What about Christmas in 2055? You can do this in your head! Blog post (text explanation): http://wp.me/p6aMk-4qQ Doomsday Rule (previous video): https://www.youtube.com/watch?v=UsStBxY9STw Calculating the day New Years (1/1) o

From playlist Mental Math Tricks

Video thumbnail

Buzzed | Doomsday Preppers

John's got a secret weapon to keep his family well fed during doomsday. ➑ Subscribe: http://bit.ly/NatGeoSubscribe About National Geographic: National Geographic is the world's premium destination for science, exploration, and adventure. Through their world-class scientists, photographe

From playlist Doomsday Preppers | National Geographic

Video thumbnail

Close the Door, Load the Shotgun (Full Episode) | Doomsday Preppers

We meet three preppers who are doing everything they can to protect themselves against looming catastrophes they fear will change life as we know it. ➑ Subscribe: http://bit.ly/NatGeoSubscribe ➑ Get more Nat Geo Full Episodes: https://youtube.com/playlist?list=PLivjPDlt6ApSiD2mk9Ngp-5dZ9C

From playlist Full Episodes | National Geographic

Video thumbnail

Doomsday: 10 Ways the World Will End - Journey to the Sun (Bonus) | History

If Earth was pulled out of its orbit towards the sun, things on our planet would get pretty hot. How long could life on Earth survive rising temperatures? The experts discuss in this bonus scene from "Earth Out of Orbit". #Doomsday Subscribe for more from Doomsday: 10 Ways the World Will

From playlist Doomsday: 10 Ways the World Will End | Official Playlist | History

Related pages

Determination of the day of the week | Pi Day | Decimal | Mental calculation | Zeller's congruence | Julian day | Lewis Carroll | Algorithm | Modular arithmetic | Quotient | Ordinal date | John Horton Conway | Floor and ceiling functions