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 archetype of all humans, their ideal image, is the computer, once it has liberated itself from its creator, man. The computer is the essence of the human being. In the computer, man reaches his completion.”
—Friedrich Dürrenmatt (19211990)
“But suppose, asks the student of the professor, we follow all your structural rules for writing, what about that something else that brings the book alive? What is the formula for that? The formula for that is not included in the curriculum.”
—Fannie Hurst (18891968)
“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 (19241984)
“The New Year is the season in which custom seems more particularly to authorize civil and harmless lies, under the name of compliments. People reciprocally profess wishes which they seldom form and concern which they seldom feel.”
—Philip Dormer Stanhope, 4th Earl Chesterfield (16941773)