fn:dateTime
Combines the given date and time. The result has a timezone if either of the inputs has a timezone; if they both have a timezone, then the two timezones must be the same.
dateTime($date as xs:date?, $time as xs:time?) ➔ xs:dateTime?
Arguments | ||||
| $date | xs:date? | The supplied date | |
| $time | xs:time? | The supplied time | |
Result | xs:dateTime? | |||
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 3.1 Functions and Operators
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions. Available for all platforms.
Notes on the Saxon implementation
The result will be an instance of xs:dateTimeStamp, and retains nanosecond
precision (or more typically, the precision of the system clock).