W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2008

error in spec for xs:date

From: Andrew Salamatov <andrewsa@exchange.microsoft.com>
Date: Fri, 10 Oct 2008 20:29:41 +0000
Message-Id: <00367B4A-8CAF-4DE6-B28C-0BB947EC1A9A@exchange.microsoft.com>
To: "www-xml-schema-comments@w3.org" <www-xml-schema-comments@w3.org>
Hi,

I noticed a contradiction in the spec in section “3.2.9 date”. The  
spec reads “… the first moment of 2002-10-10+13:00 is  
2002-10-10T00:00:00+13, which is 2002-10-09T11:00:00Z…”

This sentence implies that to get the UTC equivalent first moment of  
“2002-10-10+13”, the equation is 2002-10-10T00:00:00Z – 13:00 =  
2002-10-09T11:00:00Z (or the formula is midnight of that date in UTC  
– hours offset = first moment in UTC).

However, later on in that section we have “For example,  
2002-10-10-05:00 begins during 2002-10-09Z…” This is a contradiction,  
because according to the above formula, we would have  
2002-10-10T00:00:00Z – (-05:00) = 2002-10-10T05:00:00Z. Thus,  
2002-10-10-05:00 would begin actually on 2002-10-10Z. Hence the  
contradiction. So which is correct and what is the correct formula to  
calculate when the first moment is in UTC, given a timezone offsetted  
xs:date?

Thanks,
-Andrew
Received on Tuesday, 21 October 2008 01:44:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:16 GMT