- From: Ashok Malhotra <ashokma@microsoft.com>
- Date: Wed, 24 Mar 2004 09:57:46 -0800
- 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