- From: Priscilla Walmsley <priscilla@walmsley.com>
- Date: Mon, 24 Nov 2003 18:38:56 -0500
- To: "'Ashok Malhotra'" <ashokma@microsoft.com>, <public-qt-comments@w3.org>
Hi Ashok, Yes, now that it says "rounding towards zero" it makes more sense. Thanks, Priscilla > -----Original Message----- > From: public-qt-comments-request@w3.org > [mailto:public-qt-comments-request@w3.org] On Behalf Of Ashok Malhotra > Sent: Friday, November 21, 2003 6:36 PM > To: Priscilla Walmsley; public-qt-comments@w3.org > Subject: RE: [F&O] > fn:subtract-dateTimes-yielding-yearMonthDuration rounding > > > 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 Monday, 24 November 2003 18:39:43 UTC