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

RE: [F&O] subtracting date/time with empty sequence

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Wed, 3 Dec 2003 12:23:44 -0800
Message-ID: <EDB607C8AC991F40BE646533A1A673E8C13DBC@RED-MSG-42.redmond.corp.microsoft.com>
To: "Sarah Wilkin" <swilkin@apple.com>, <public-qt-comments@w3.org>

Sarah:
Thank you for your comment.  The rule is that the op: functions that
back up operators should not accept the empty sequence since the empty
sequence is handled at the language level and the function never sees
it.  Thus, 
op:subtract-dates
op:subtract-times 
should not accept the empty sequence.

The F&O Taskforce agreed to make this change on the 12/2 telcon.

All the best, Ashok

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Sarah Wilkin
Sent: Wednesday, November 19, 2003 3:35 PM
To: public-qt-comments@w3.org
Subject: [F&O] subtracting date/time with empty sequence


I'm curious why the subtract functions on date/time were changed to 
take the empty sequence but the ones on durations were not. Is this a 
bug or is there a decision behind it?

The ones that can take the empty sequence are:
op:subtract-dates
fn:subtract-dateTimes-yielding-dayTimeDuration
fn:subtract-dateTimes-yielding-yearMonthDuration
op:subtract-times

The ones that cannot are:
op:subtract-dayTimeDuration-from-date
op:subtract-dayTimeDuration-from-dateTime
op:subtract-dayTimeDuration-from-time
op:subtract-dayTimeDurations
op:subtract-yearMonthDuration-from-date
op:subtract-yearMonthDuration-from-dateTime
op:subtract-yearMonthDurations

--Sarah
Received on Wednesday, 3 December 2003 15:23:46 GMT

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