<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3877</bug_id>
          
          <creation_ts>2006-10-28 16:46:49 +0000</creation_ts>
          <short_desc>Limits on dayTimeDuration</short_desc>
          <delta_ts>2006-10-28 18:18:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12642</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-10-28 16:46:49 +0000</bug_when>
    <thetext>The draft Schema 1.1 Part 2 (section 5.1) proposes:

All ·minimally conforming· processors must support duration values with from -2,000,000,000 to 2,000,000,000 months and from -2,000,000 to 2,000,000 seconds.

2 million seconds is only 23 days. This means that an XSLT/XQuery user will not be able to take a date and add 30 days without running the risk of arithmetic overflow. But this is an everyday commercial calculation. 

This seems an unreasonably low limit from the point of view of user expectations of interoperability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12643</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-10-28 18:12:49 +0000</bug_when>
    <thetext>(In reply to comment #0)

In considering bug 3026 (which objected to that large a month component), the WG chose to also change the minimum partial implementation limit for seconds.  That limit in the status quo document is now plus and minus 31622400 seconds (the length in seconds of one leap year).

I assume this will satisfy your comment.

Please let us know if you agree with this resolution of your issue, 
by adding a comment to the issue record and changing the Status of 
the issue to Closed.  Or, if you do not agree with this resolution, 
please add a comment explaining why. If you wish to appeal the WG&apos;s 
decision to the Director, then also change the Status of the record 
to Reopened. If you wish to record your dissent, but do not wish to 
appeal the decision to the Director, then change the Status of the 
record to Closed.  If we do not hear from you in the next two weeks, 
we will assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12644</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-10-28 18:18:09 +0000</bug_when>
    <thetext>Yes, one year is certainly a much more reasonable limit. It&apos;s still probably a bit low for some users and use cases, and as an implementor I wouldn&apos;t see any benefit it restricting it as low as that (Saxon&apos;s limit is 2^63 microseconds), but this does address the comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>