W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] Week Strings

From: 'Smylers' <Smylers@stripey.com>
Date: Fri, 19 Jun 2009 12:32:54 +0100
Message-ID: <20090619113254.GC22306@stripey.com>
K?i?tof ?elechovski writes:

> An algorithm for calculating the weekday of Jan.?1st given a year
> would be outside the scope of the HTML specification.

That's begging the question.

> Similarly, the HTML specification does not describe how you increment
> a number by 1.

No, but it does explain how to interpret a sequence of digits as an
integer (multiplying the value by 10 for each digit encountered).  And
defines that week is a period of 7 days.  And defines how many days
there are in each month of a year.  And even states the blindingly

  The 'week number of the last day' of a week-year with 53 weeks is 53;
  the 'week number of the last day' of a week-year with 52 weeks is 52.

Those things all seem much more obvious to me than working out which day
January 1st of a given year is.  But as I said, I'm not a browser
developer so perhaps it's fine.

Received on Friday, 19 June 2009 04:32:54 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:13 UTC