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 2254 - Example of subtraction of dates gives wrong result
Summary: Example of subtraction of dates gives wrong result
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 Linux
: 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-09-16 10:51 UTC by Colin Adams
Modified: 2007-02-25 23:42 UTC (History)
0 users

See Also:


Attachments

Description Colin Adams 2005-09-16 10:51:20 UTC
The second example in 10.8.2.1 says the result is 335 days and 19 hours. In fact
it is 336 days and 19 hours (Year 2000 was a leap year).
Comment 1 Ashok Malhotra 2005-09-27 15:36:28 UTC
Will fix editorially.
Comment 2 Jim Melton 2007-02-25 23:42:00 UTC
Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.