Here's a method I've tested for all dates up to the year 5000. It generalizes the part of the method under the "Note" section. Instead of conditionally adding 2, 4, etc, always add a term. The term should be equal to (3 - y % 4) * 2 where y is the first two digests of the year.
Here's a method I've tested for all dates up to the year 5000. It generalizes the part of the method under the "Note" section. Instead of conditionally adding 2, 4, etc, always add a term. The term should be equal to (3 - y % 4) * 2 where y is the first two digests of the year.