Doomsday Rule - Computer Formula For The Doomsday of A Year

Computer Formula For The Doomsday of A Year

For computer use, the following formulas for the Doomsday of a year are convenient.

For the Gregorian calendar:

For example, the year 2009 has a doomsday of Saturday under the Gregorian calendar (the currently accepted calendar), since

For the Julian calendar:

The formulas apply also for the proleptic Gregorian calendar and the proleptic Julian calendar. They use the floor function and astronomical year numbering for years BC.

For comparison, see the calculation of a Julian day number.

Read more about this topic:  Doomsday Rule

Famous quotes containing the words computer, formula, doomsday and/or year:

    “The analogy between the mind and a computer fails for many reasons. The brain is constructed by principles that assure diversity and degeneracy. Unlike a computer, it has no replicative memory. It is historical and value driven. It forms categories by internal criteria and by constraints acting at many scales, not by means of a syntactically constructed program. The world with which the brain interacts is not unequivocally made up of classical categories.”
    —Gerald M. Edelman (b. 1928)

    “I cannot give you the formula for success, but I can give you the formula for failure—which is: Try to please everybody.”
    —Herbert B. Swope (1882–1958)

    “Even an attorney of moderate talent can postpone doomsday year after year, for the system of appeals that pervades American jurisprudence amounts to a legalistic wheel of fortune, a game of chance, somewhat fixed in the favor of the criminal, that the participants play interminably.”
    —Truman Capote (1924–1984)

    “We are playing with fire when we skip the years of three, four, and five to hurry children into being age six.... Every child has a right to his fifth year of life, his fourth year, his third year. He has a right to live each year with joy and self-fulfillment. No one should ever claim the power to make a child mortgage his today for the sake of tomorrow.”
    —James L. Hymes, Jr. (20th century)