Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For figuring the doomsday of a particular year, you can use the Odd+11 rule.

Let X be the last two digits of a year.

If X is odd, add 11.

Divide X by 2.

If X is odd, add 11.

Let Y = 7 − (X mod 7).

Count forward Y days from that century's anchor day to get the year's doomsday.

https://arxiv.org/pdf/1010.0765



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: