W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2004

RE: [F&O] adjust-date-to-timezone underspecified?

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Wed, 24 Mar 2004 09:57:46 -0800
Message-ID: <EDB607C8AC991F40BE646533A1A673E8019B7F85@RED-MSG-42.redmond.corp.microsoft.com>
To: "Priscilla Walmsley" <priscilla@walmsley.com>, <public-qt-comments@w3.org>

Thank you!  That's much clearer.

All the best, Ashok

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Priscilla
Walmsley
Sent: Wednesday, February 04, 2004 4:45 AM
To: public-qt-comments@w3.org
Subject: [F&O] adjust-date-to-timezone underspecified?


When describing adjust-date-to-timezone, F&O says:

"If $timezone is not the empty sequence, then the result is $arg with
$timezone as its timezone component."

I think this means that a timezone adjustment is performed, based on the
time value 00:00:00, similar to the other "adjust" functions.  But the
current text seems vague, and I know of one implementation that does not
work this way.  

I would recommend the following more specific text (modeled after the
text
for adjust-time-to-timezone):
-----------------------------
If $arg has a timezone component and $timezone is not the empty
sequence,
then:

- Let $srcdt be an xs:dateTime value, with 00:00:00 for the time
component
and date and timezone components that are the same as the date and
timezone
components of $arg.

- Let $r be the result of evaluating

    fn:adjust-dateTime-to-timezone($srcdt, $timezone)

- The result of this function will be a date value that has date and
timezone components that are the same as the date and timezone
components of
$r.
-------------------------------


Thanks,
Priscilla Walmsley
Received on Wednesday, 24 March 2004 13:09:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:56 UTC