current-time function

The fn:current-time function returns the current time in the implicit time zone of UTC.

Syntax

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

Returned value

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

Example

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

If this function were invoked at 6:31 Greenwich Mean Time, the returned value might be 06:31:35.519001Z.