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)
“Its hard enough to adjust [to the lack of control] in the beginning, says a corporate vice president and single mother. But then you realize that everything keeps changing, so you never regain control. I was just learning to take care of the belly-button stump, when it fell off. I had just learned to make formula really efficiently, when Sarah stopped using it.”
—Anne C. Weisberg (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 (19241984)
“These young women have had four years of very special space.... This has been special space. This has been safe space. But when they graduate, they will begin to deal on a daily basis, all day long, month after month, year after year, with the realities that still haunt our nation.”
—Johnnetta Betsch Cole (b. 1936)