W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2002

Re: Canonical representation of date

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 1 Oct 2002 11:51:46 +0100
Message-ID: <91416736825.20021001115146@jenitennison.com>
To: Natalie Gordon <nfg@decisionsoft.com>
Cc: public-qt-comments@w3.org

Hi Natalie,

> In the "XML Schema Part 2: Datatypes" date timezones are said to be
> "allowed as for dateTime".
> Which is the correct canonical representation of a date:
> 1999-05-31-05:00 or 1999-05-31T-05:00 ? Are they both lexically
> correct?


If the timezone is UTC, then:


See http://www.w3.org/TR/xmlschema-2/#isoformats for more details.

> In the Functions and Operators 8.6.3 add-timezone-to-date shows the
> return values as including the "T" seperator for numerical timezones
> but no "T" seperator for "Z". If the timezone qualifier is "Z"
> should there be a "T" seperator?

The W3C XML Schema Datatypes spec (as referenced above) states that
the 'T' separator should only be used to indicate the start of the
representation of the time of day in xs:dateTime.



Jeni Tennison
Received on Tuesday, 1 October 2002 06:59:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:43 UTC