Re: Canonical representation of date

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?

  1999-05-31-05:00

If the timezone is UTC, then:

  1999-05-31Z

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.

Cheers,

Jeni

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

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