<?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>3651</bug_id>
          
          <creation_ts>2006-09-04 14:44:39 +0000</creation_ts>
          <short_desc>Argument types of fn:dateTime</short_desc>
          <delta_ts>2006-10-05 09:23:36 +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>Candidate Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          <dependson>3717</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hallam">oliver</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</assigned_to>
          <cc>mrys</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>11372</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2006-09-04 14:44:39 +0000</bug_when>
    <thetext>The definition of fn:dateTime (from section 5.2 of the spec) is:
fn:dateTime($arg1 as xs:date, $arg2 as xs:time) as xs:dateTime

In the examples (5.2.1) it is stated that:
fn:dateTime(xs:date(&quot;1999-12-31&quot;), xs:time(&quot;12:00:00&quot;)) returns xs:dateTime(&quot;1999-12-31T12:00:00&quot;).

Section 5.1 states:
The form of the constructor function for a type prefix:TYPE is:
prefix:TYPE($arg as xs:anyAtomicType?) as prefix:TYPE?

Under the static typing feature the example should raise a type check error, as xs:date and xs:time have return types xs:date? and xs:time? respectively.

In order for the example to make sense (and to be consistent with other constructor functions) fn:dateTime should have the following signature:

fn:dateTime($arg1 as xs:date?, $arg2 as xs:time?) as xs:dateTime?

and it should return the empty sequence if either of the parameters are the empty sequence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11647</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-13 11:56:23 +0000</bug_when>
    <thetext>The resolution of 3717 could solve this report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11788</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-15 17:54:29 +0000</bug_when>
    <thetext>The XSL and XML Query WGs considered this issue at their Sept. 12 meeting.

The WGs agree with the changes that you have suggested:

- fn:dateTime should have the following signature:

  fn:dateTime($arg1 as xs:date?, $arg2 as xs:time?) as xs:dateTime?

- the function will return the empty sequence if either of the parameters are the empty sequence


Please close this bug report if you agree with our resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11951</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-22 10:18:37 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12300</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-10-05 09:23:36 +0000</bug_when>
    <thetext>*** Bug 1471 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>