W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: [http-state] cookie dates [was Re: Status update]

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 12 Aug 2009 19:42:46 +0000 (UTC)
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Daniel Stenberg <daniel@haxx.se>, "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0908121941190.18950@hixie.dreamhostps.com>
On Wed, 12 Aug 2009, Julian Reschke wrote:
> 
> For instance, when I look at "month" I find:
> 
> "2.4.5.1 Months
> 
> A month consists of a specific proleptic Gregorian date with no time-zone
> information and no date information beyond a year and a month. [GREGORIAN]
> 
> A string is a valid month string representing a year year and month month if
> it consists of the following components in the given order:
> 
>    1. Four or more digits, representing year, where year > 0
>    2. A U+002D HYPHEN-MINUS character (-)
>    3. Two digits, representing the month month, in the range 1 ≤ month ≤
> 12"
> 
> So it defines "month" (in bold) to be a date, consisting of a year and a month
> (non-bold). This is confusing.
> 
> Why not simply say:
> 
>   year  = 4*DIGIT ; 4 or more digits, year > 0
>   month = 2DIGIT  ; 2 digits, 1 <= month <= 12
> 
>   month-string = year "-" month
> 
> ?

That's a matter of opinion. Personally I find the prose version much more 
approachable.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 12 August 2009 19:43:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:43 GMT