fn:dateTime

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

Summary

Returns an xs:dateTime value created by combining an xs:date and an xs:time.

The timezone of the result is computed as follows:

Parameters
arg1 The date to be combined with the time argument.
arg2 The time to be combined with the date argument.

Example

fn:dateTime(xs:date('2008-02-01'), xs:time('10:25:00'))
=> 2008-02-01T10:25:00

Example

fn:dateTime(xs:date('2008-02-01'), xs:time('10:25:00+02:00'))
=> 2008-02-01T10:25:00+02:00

Example

fn:dateTime(xs:date('2010-12-01+04:00'), xs:time('11:45:20'))
=> 2010-12-01T11:45:20+04:00
Powered by MarkLogic Server | Terms of Use | Privacy Policy