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 computer takes up where psychoanalysis left off. It takes the ideas of a decentered self and makes it more concrete by modeling mind as a multiprocessing machine.
    Sherry Turkle (b. 1948)

    Hidden away amongst Aschenbach’s writing was a passage directly asserting that nearly all the great things that exist owe their existence to a defiant despite: it is despite grief and anguish, despite poverty, loneliness, bodily weakness, vice and passion and a thousand inhibitions, that they have come into being at all. But this was more than an observation, it was an experience, it was positively the formula of his life and his fame, the key to his work.
    Thomas Mann (18751955)

    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)

    The chrysanthemums’ astringent fragrance comes
    Each year to disguise the clanking mechanism
    Of machine within machine within machine.
    Wallace Stevens (1879–1955)