News for hackers. Stuff that matters.
Re:Calculate the day of the week for any date in your head by Areading314 on Wednesday January 01, 2020 @02:15AM (#21927049)
Did you read the whole thing?
Re:Calculate the day of the week for any date in your head by jimmyvalmer on Wednesday January 01, 2020 @07:45AM (#21927818)
No. As soon as the algo asserts "the last day of February is Thursday the 28th," and didn't explain how it knew 2019 wasn't a leap year or that the 28th was indeed a Thursday, I stopped reading.
Re:Calculate the day of the week for any date in your head by aliceryhl on Wednesday January 01, 2020 @09:56AM (#21928247)
I think the idea behind this algorithm is that you have to remember one anchor date in the current year, and then you can find all other days in the same year.
Re:Calculate the day of the week for any date in your head by Areading314 on Sunday January 05, 2020 @11:56AM (#21962180)
It later goes to explain a method to derive annual doomsdays based on a century-doomsday