current-dateTime function
The fn:current-dateTime function returns the current date and time in the implicit time zone of UTC.
Syntax
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, 2005 at 6:25 in Toronto (timezone -PT5H), the returned value might be 2005-12-02T011:25:30.864001Z.