Examples
For January 1, 2000, the date would be treated as the 13th month of 1999, so the values would be:
- q = 1
- m = 13
- K = 99
- J = 19
So the formula evaluates as (1 + 36 + 99 + 24 + 4 − 38) mod 7 = 126 mod 7 = 0 = Saturday
(The 36 comes from (13+1)*26/10 = 364/10, truncated to an integer.)
However, for March 1, 2000, the date is treated as the 3rd month of 2000, so the values become
- q = 1
- m = 3
- K = 0
- J = 20
so the formula evaluates as (1 + 10 + 0 + 0 + 5 − 40) mod 7 = −24 mod 7 = 4 = Wednesday
Read more about this topic: Zeller's Congruence
Famous quotes containing the word examples:
“It is hardly to be believed how spiritual reflections when mixed with a little physics can hold peoples attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.”
—G.C. (Georg Christoph)
“Histories are more full of examples of the fidelity of dogs than of friends.”
—Alexander Pope (16881744)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)