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

There is a small correction needed for January and February in leap years, and I haven't included the corrections for pre-1900. The Carroll method does deal with these issues and I have internalised them, but I find I never use them, so I retain only the simpler version.


One simple way to do January and February is to treat them as part of the previous year (with an adjustment for the constant you remember for those months).




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

Search: