<?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>4927</bug_id>
          
          <creation_ts>2007-08-09 15:25:11 +0000</creation_ts>
          <short_desc>[FO] 10.8.1, 10.8.2</short_desc>
          <delta_ts>2007-11-16 09:31:15 +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>Functions and Operators 1.0</component>
          <version>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4448</dup_id>
          
          <bug_file_loc>http://www.w3.org/TR/xquery-operators/#func-subtract-dateTimes</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="Ben Wagner">bungeman</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>16092</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Wagner">bungeman</who>
    <bug_when>2007-08-09 15:25:11 +0000</bug_when>
    <thetext>In the functions and operators specification the following two signatures are given

op:subtract-dateTimes($arg1 as xs:dateTime, $arg2 as xs:dateTime) as xs:dayTimeDuration?

and 

op:subtract-dates($arg1 as xs:date, $arg2 as xs:date) as xs:dayTimeDuration?

but I am puzzled as to why these specify a return type of &quot;xs:dayTimeDuration?&quot;. Since neither argument can be the empty sequence, and since the static context timezone is assumed if there isn&apos;t one on one of the arguments, I don&apos;t see how these functions can fail. Additionally, the rest of the operator backers do not return empty sequences. Should the return type on these two functions be &quot;xs:dayTimeDuration&quot;? If not, there should be an example of why not in the function description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16093</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-08-09 15:34:03 +0000</bug_when>
    <thetext>Thanks, this is a duplicate of bug #4448 and an erratum has already been drafted.

*** This bug has been marked as a duplicate of bug 4448 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>