fn:current-time function

The fn:current-time function returns the current time in the local time zone.

Syntax

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

Returned value

The returned value is an xs:time value that is the current time. The time zone component of the returned value is the local time zone. The precision for fractions of seconds is 12.

Example

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

If this function were invoked at 6:31 Pacific Standard Time (-08:00), the returned value would be 06:31:35.519003948231-08:00.