W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

Dates with timezones

From: Michael Kay <michael.h.kay@ntlworld.com>
Date: Fri, 22 Mar 2002 18:22:37 -0000
To: <www-xml-schema-comments@w3.org>
Message-ID: <000101c1d1ce$8c2eccb0$655169d5@pcukmka>
I am having trouble determining from XML Schema Part 2 whether a date that
has a timezone should be written 2002-03-22-05:00 or 2002-03-22T-05:00. The
same applies to gYear, gYearMonth, etc.

There seem to be no examples of these formats in the document, and there are
no patterns given to specify the lexical value space. ISO 8601 is no help
because it does not permit these formats.

Under date (section 3.2.9) it is stated that "An optional following time
zone qualifier is allowed as for dateTime". But the term "time zone
qualifier" is not actually defined in the section on dateTime.

In general I would expect to find a "T" between the date part of the value
and the time part, and I would regard the time zone as being within the time
part. But I can't see anything anywhere that tells me whether the "T" is
required here.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
Received on Friday, 22 March 2002 13:22:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:57 UTC