<?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>29616</bug_id>
          
          <creation_ts>2016-05-07 21:33:45 +0000</creation_ts>
          <short_desc>[QT3] format-date-044</short_desc>
          <delta_ts>2016-05-10 14:17:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Benito van der Zander">benito</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>abel.braaksma</cc>
    
    <cc>josh.spiegel</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>126369</commentid>
    <comment_count>0</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-05-07 21:33:45 +0000</bug_when>
    <thetext>In format-date-044 format &quot;[Y#.0,2]&quot; has width formatter &quot;2&quot; which has no max width, and thus should not truncate the year</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126374</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-05-08 18:22:56 +0000</bug_when>
    <thetext>This was added to test comment 10 of bug 29555.  In this case, year should be truncated.  Closing as invalid but you can reopen if you disagree after reviewing the comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126377</commentid>
    <comment_count>2</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-05-08 20:04:07 +0000</bug_when>
    <thetext>
&gt;(i) if the width modifier is present and includes a maximum width,

I was thinking if the modifier is there, then it always has an implicit maximum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126396</commentid>
    <comment_count>3</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-05-10 08:59:07 +0000</bug_when>
    <thetext>It is also not clear what happens to fractions with such a format

format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f#.0,2]&quot;)

The fraction truncation should probably be consistent with the year truncation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126399</commentid>
    <comment_count>4</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-05-10 13:47:45 +0000</bug_when>
    <thetext>(In reply to Benito van der Zander from comment #3)
&gt; It is also not clear what happens to fractions with such a format
&gt; 
&gt; format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f#.0,2]&quot;)
&gt; 
&gt; The fraction truncation should probably be consistent with the year
&gt; truncation
In Bug 29555, comment 3, the proposal is (and I think it was accepted) that the first presentation modifier *must* follow the pattern &quot;\d+#*&quot;. Your pattern is therefore not allowed (the &quot;.&quot; should not appear there and the &quot;0&quot; cannot follow the &quot;#&quot;).

The proper way to express a min width of 2 would be:

format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f0#,2]&quot;)

or:

format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f0,2]&quot;)

or:

format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f00]&quot;)

Note that the first two expressions above have a max width of infinity according to that same comment. To force a max of two digits, one has to write:

format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f0#,2-2]&quot;)

or:

format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f0,2-2]&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126401</commentid>
    <comment_count>5</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-05-10 14:09:46 +0000</bug_when>
    <thetext>Then compare the output of
  format-time(xs:time(&quot;12:22:33.123456&quot;), &quot;[f00,2]&quot;)
and
  format-date(xs:date(&apos;2016-01-01&apos;), &apos;[Y00,2]&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126402</commentid>
    <comment_count>6</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-05-10 14:17:02 +0000</bug_when>
    <thetext>Benito, if you think we need consistency in these cases, can you either file a new bug against the specification or make the comment on bug 29555?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>