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($arg1 as xs:date?, $arg2 as xs:time?) ➔ xs:dateTime?
The supplied date
The supplied time
Links to W3C specifications
Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions.
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).