W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2005

[Bug 2254] Example of subtraction of dates gives wrong result

From: <bugzilla@wiggum.w3.org>
Date: Fri, 16 Sep 2005 10:51:22 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1EGDoQ-0004rY-2q@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2254

           Summary: Example of subtraction of dates gives wrong result
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: colin@colina.demon.co.uk
         QAContact: public-qt-comments@w3.org


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).
Received on Friday, 16 September 2005 10:51:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:08 UTC