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 formula, doomsday and/or year:

    In the most desirable conditions, the child learns to manage anxiety by being exposed to just the right amounts of it, not much more and not much less. This optimal amount of anxiety varies with the child’s age and temperament. It may also vary with cultural values.... There is no mathematical formula for calculating exact amounts of optimal anxiety. This is why child rearing is an art and not a science.
    Alicia F. Lieberman (20th century)

    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 rarest of all things in American life is charm. We spend billions every year manufacturing fake charm that goes under the heading of “public relations.” Without it, America would be grim indeed.
    Anita Loos (1888–1981)