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:

    Family life is not a computer program that runs on its own; it needs continual input from everyone.
    Neil Kurshan (20th century)

    My formula for greatness in human beings is amor fati: that one wants to change nothing, neither forwards, nor backwards, nor in all eternity. Not merely to endure necessity, still less to hide it—all idealism is mendacity in the face of necessity—but rather to love it.
    Friedrich Nietzsche (1844–1900)

    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 often made to feel that there is another youth and age than that which is measured from the year of our natural birth. Some thoughts always find us young, and keep us so. Such a thought is the love of the universal and eternal beauty.
    Ralph Waldo Emerson (1803–1882)