MarkLogic 9 Product Documentation
sem.timezoneString

sem.timezoneString(
   value as Date
) as String

Summary

Returns the timezone of an xs:dateTime value as a string. This XQuery function backs up the SPARQL TZ() function.

This function is a built-in.

Parameters
value The dateTime value

Example

sem.timezoneString(fn.currentDateTime());
=>
-08:00
Powered by MarkLogic Server | Terms of Use | Privacy Policy