[
Lists Home 
Date Index 
Thread Index
]
Hi Dare,
>> The algorithm in the W3C XML Schema Datatypes Recommendation adds
>> the year/month component first (which would give 20050229), then
>> "pins" the result of that to give a legal date (i.e. 20050228),
>> and then adds the day and time components of the duration (to give
>> the final answer of 20050301).
>
> Which Astonishes me (as in Principle of Least Astonishment). I would
> have expected a year after 229 to be 31.
>
> Did I misread John's email? 20050301 is 31 isn't it?
Yes, but he said he would have expected *[one] year* after 229 to be
31, i.e. for 20040229 + P1Y to be 20050301. Whereas the W3C XML
Schema Rec. algorithm says that 20040229 + P1Y is 20050228.
Cheers,
Jeni

Jeni Tennison
http://www.jenitennison.com/
