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:
“In the examples that I here bring in of what I have [read], heard, done or said, I have refrained from daring to alter even the smallest and most indifferent circumstances. My conscience falsifies not an iota; for my knowledge I cannot answer.”
—Michel de Montaigne (15331592)
“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)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)