News for hackers. Stuff that matters.
Re:When Can I Reuse This Calendar? by lifthrasiir on Tuesday July 09, 2019 @03:08AM (#20389602)
> The easiest way to code it is to just precompute the year % 400 table and report the results.

If you are interested, Chrono [1] internally uses the exact table. Constants there refer to dominical letters [2].

[1] https://github.com/chronotope/chrono/blob/a4488007272569f752...

[2] https://en.wikipedia.org/wiki/Dominical_letter

There are no comments on this comment yet.