Loading TOC...

MarkLogic 12 EA 2 Product Documentation
fn:minutes-from-dateTime

fn:minutes-from-dateTime(
   $arg as xs:dateTime?
) as xs:integer?

Summary

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

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

Parameters
arg The dateTime whose minutes component will be returned.

Example

fn:minutes-from-dateTime(
    xs:dateTime("1999-05-31T13:20:00-05:00"))
=> 20

Example

fn:minutes-from-dateTime(
    xs:dateTime("1999-05-31T13:30:00+05:30"))
=> 30

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