Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sem:timezone-string

sem:timezone-string(
   $value as xs:dateTime
) as xs: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:timezone-string(fn:current-dateTime())
=>
-08:00

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.