[whatwg] Week Strings

Getting the day of the week, in the Gregorian calendar, for a given date is
pretty straightforward. I thought we publihsed it online somehwere on the
Royal Observatory website, but I can't find it. However, wikipedia has the
algorithm:
http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week#An_algorithm_to
_calculate_the_day_of_the_week

Cheers
Jim O'Donnell

Original Message:
-----------------
From: K???i???tof ???elechovski giecrilj@stegny.2a.pl
Date: Fri, 19 Jun 2009 13:39:55 +0200
To: Smylers at stripey.com, whatwg at lists.whatwg.org
Subject: Re: [whatwg] Week Strings


An algorithm to calculate the weekday of Jan.???1th given a year is not
obvious at all.  Just the opposite: the more obvious an external fact is,
the easier (and more appropriate) it is to incorporate it to the
specification because it does not cause any distraction from the main
subject.
Cheers,
Chris



--------------------------------------------------------------------
mail2web LIVE ? Free email based on Microsoft? Exchange technology -
http://link.mail2web.com/LIVE

Received on Friday, 19 June 2009 05:11:22 UTC