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:
“There are many examples of women that have excelled in learning, and even in war, but this is no reason we should bring em all up to Latin and Greek or else military discipline, instead of needle-work and housewifry.”
—Bernard Mandeville (16701733)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)
“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)