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:
“What, then, is the basic difference between todays computer and an intelligent being? It is that the computer can be made to see but not to perceive. What matters here is not that the computer is without consciousness but that thus far it is incapable of the spontaneous grasp of patterna capacity essential to perception and intelligence.”
—Rudolf Arnheim (b. 1904)
“So, if we must give a general formula applicable to all kinds of soul, we must describe it as the first actuality [entelechy] of a natural organized body.”
—Aristotle (384323 B.C.)
“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)
“One of the sadder things, I think,
Is how our birthdays slowly sink:
Presents and parties disappear,
The cards grow fewer year by year,
Till, when one reaches sixty-five,
How many care were still alive?”
—Philip Larkin (19221986)