XQuery current-time Function
XQuery current-time Function
The current-time function is used to return the current time.
Syntax
current-time()
Example
XQuery Expression
let $time := current-time()
return
<results>
<time>{$time}</time>
</results>
Output
<results>
<time>14:53:46.803+02:00</time>
</results>
note
Here +02:00 is the relative GMT time of the server.