fn:current-dateTime

Return the current date and time.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

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

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.

Examples

  • Calling this function can return a value such as 2005-09-25T17:22:33.161Z meaning the current time on September 25, 2005:

    current-dateTime()