fn:current-dateTime function

The fn:current-dateTime function returns the current date and time in the implicit timezone of UTC.

Syntax

Read syntax diagramSkip visual syntax diagramfn:current-dateTime()

Returned value

The returned value is an xs:dateTime value that is the current date and time.

Example

The following function returns the current date and time.
fn:current-dateTime()

If this function were invoked on December 2, 2009 at 6:25 in Toronto (time zone -PT5H), the returned value might be 2009-12-02T11:25:30.864001Z.