Formula
For the Gregorian calendar, Zeller's congruence is
for the Julian calendar it is
where
- h is the day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, ...)
- q is the day of the month
- m is the month (3 = March, 4 = April, 5 = May, ..., 14 = February)
- K the year of the century .
- J is the century (actually ) (For example, in 1995 the century would be 19, even though it was the 20th century.)
NOTE: In this algorithm January and February are counted as months 13 and 14 of the previous year. E.g. if it is February 2, 2010, the algorithm counts the date as the second day of the fourteenth month of 2009 (02/14/2009 in DD/MM/YYYY format)
For an ISO week date Day-of-Week d (1 = Monday to 7 = Sunday), use
Read more about this topic: Zeller's Congruence
Famous quotes containing the word formula:
“I feel like a white granular mass of amorphous crystalsmy formula appears to be isomeric with Spasmotoxin. My aurochloride precipitates into beautiful prismatic needles. My Platinochloride develops octohedron crystals,with a fine blue florescence. My physiological action is not indifferent. One millionth of a grain injected under the skin of a frog produced instantaneous death accompanied by an orange blossom odor.”
—Lafcadio Hearn (18501904)
“Hidden away amongst Aschenbachs writing was a passage directly asserting that nearly all the great things that exist owe their existence to a defiant despite: it is despite grief and anguish, despite poverty, loneliness, bodily weakness, vice and passion and a thousand inhibitions, that they have come into being at all. But this was more than an observation, it was an experience, it was positively the formula of his life and his fame, the key to his work.”
—Thomas Mann (18751955)
“I take it that what all men are really after is some form or perhaps only some formula of peace.”
—Joseph Conrad (18571924)