algorithmlanguage-agnosticcalendar

Slight problem with day of the week calculation (base doomsday for a century)


From this online calculator: http://homer.freeshell.org/dd.cgi using its data I've successfully written a working version, however its data is limited to years 1500 to 2600. I want to modify (and make a better one) so that I can calculate for any year > 2600.

Referring to Table X, is there actually a formula to calculate the base doomsday for all base centuries (above 2600)?

I've tried working it out myself by putting centuries higher than this e.g. 2700 gave me a base doomsday of '00', 2800 gave '02;, 2900 back to '00' again...

Help appreciated.


Solution

  • Are there any other calculators out there that do this?

    Two common methods for calculating the day of the week given a date are Doomsday, which you are using, and Zeller's Congruence

    www.merlyn.demon.co.uk provides some really interesting information on date/time calculations, various calendar systems and significant dates as they relate to calendar/date calculations.