Version 8.2.2
 —  XQuery 4 Reference Guide  —

fn:current-dateTime

Return the current date and time.


Syntax

fn:current-dateTime() => xs:dateTime

Top of page

Description

This function returns a value of type xs:dateTime corresponding to the current date and time. The result is a value of type xs:dateTime that contains the date and time together with timezone information.

Top of page

Examples

Top of page