This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1567 - Subtract duration from date: minor error
Summary: Subtract duration from date: minor error
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 15:11 UTC by Michael Kay
Modified: 2007-02-25 23:40 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-07-13 15:11:20 UTC
In 10.8.11 op:subtract-dayTimeDuration-from-date we read:

 If $arg2 is negative, then the xs:date returned precedes $arg1.

This should say

 If $arg2 is positive, then the xs:date returned precedes $arg1.

The same error occurs for other permutations of subtract-XX-duration-from-date|time
Comment 1 Ashok Malhotra 2005-07-21 22:30:14 UTC
Thank you for catching that!  Fixed!
Comment 2 Jim Melton 2007-02-25 23:40:54 UTC
Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.