Dates with timezones

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