News for hackers. Stuff that matters.
Re:Show HN: How to Mentally Calculate the Day of the Week fo... by kepeko on Tuesday August 25, 2026 @04:49AM (#49430795)
It's cool. Here a little different way to calculate. Day number + month number + year number, modulo 7 => weekday number. Year number this year is 3, goes +1 every year, +2 in leap year. Month numbers if not leap year: 033614625035. Day number is ordinary day of the month. 24th Dec 2026 would be: 24 + 5 + 3 = 32. 32 mod 7 is 4 (Thursday)

There are no comments on this comment yet.