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

RE: [F&O] fn:subtract-dateTimes-yielding-yearMonthDuration rounding

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Fri, 21 Nov 2003 15:35:57 -0800
Message-ID: <EDB607C8AC991F40BE646533A1A673E8AD0512@RED-MSG-42.redmond.corp.microsoft.com>
To: "Priscilla Walmsley" <priscilla@walmsley.com>, <public-qt-comments@w3.org>

Priscilla:
The wording for this function was changed as a result of some discussion
on the QT list.  It now reads...

"This function returns the result rounded to contain only years and
months. The calculation is as follows: first the duration is calculated
as the value of an xdt:dayTimeDuration in seconds. Then, starting from
$arg2, the maximum number of whole months in the duration is calculated
rounding towards zero. If there are a remaining number of days, they are
discarded."

Is this OK?

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: Friday, November 21, 2003 6:35 AM
To: public-qt-comments@w3.org
Subject: [F&O] fn:subtract-dateTimes-yielding-yearMonthDuration rounding


The description of the fn:subtract-dateTimes-yielding-yearMonthDuration
says
in one place that it "returns the result rounded to contain only years
and
months."  But it also says that "If there is a remaining number of days,
they are discarded." 

These two statements seem to contradict each other.  Does it round or
not?

Thanks,
Priscilla
Received on Friday, 21 November 2003 18:36:01 GMT

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