Loading TOC...

MarkLogic 12 EA 2 Product Documentation
sql:minutes

sql:minutes(
   $arg as xs:genericDateTimeArg?
) as xs:integer?

Summary

Returns an xs:integer value between 0 to 59, both inclusive, representing the value of the minutes component in the localized value of $arg.

If $arg is the empty sequence, returns the empty sequence.

Parameters
arg The genericDateTime whose minutes component will be returned.

Example

sql:minutes(xs:time("13:00:00Z"))
=> 0

Example

sql:minutes("13:00:00Z")
=> 0

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