W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

dateTime etc accessors now UTC-based, were local

From: David Holmes <dholmes@tibco.com>
Date: Wed, 7 May 2003 16:44:17 -0400
Message-ID: <339902DC0E58D411986A00B0D03D843201C022FA@extmail.rtp.tibco.com>
To: "'public-qt-comments@w3.org'" <public-qt-comments@w3.org>

I noticed that the Last Call (02 May 2003) Functions and Operators working
draft has changed from the 15 November 2002 draft in regards to the basis
for component accessors functions for dateTime and friends.

For example, where previously (Section 8.4.10.1, 15 November 2002)

fn:get-hours-from-dateTime(xs:dateTime("1999-05-31T13:20:00-05:00")) returns
13,

now (Section 9.4.10.1, 02 May 2003)

fn:get-hours-from-dateTime(xs:dateTime("1999-12-31T21:20:00-05:00")) returns
2.

It would appear that the basis for component accessors has gone from local
(same as lexical) to UTC.  I can understand that the distinction is
necessary to get everything to work out right, but the user is now left with
the onerous task of calculating local components and surprising results
unless this behavior is made very explicit in the specs.

Would you be able to point me to some threads on the subject? Did the
committee consider some parallel functions e.g. get-local-hours-from- and
get-utc-hours-from-?

Thanks,

David Holmes
Received on Wednesday, 7 May 2003 16:52:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT