MarkLogic 12 EA 1 Product Documentation
fn.minutesFromDuration

fn.minutesFromDuration(
   arg as xs.duration?
) as Number?

Summary

Returns an xs:integer representing the minutes component in the canonical lexical representation of the value of $arg. The result may be negative.

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

Parameters
arg The duration whose minute component will be returned.

Example

fn.minutesFromDuration(xs.duration("P3DT10H"));
=> 0

Example

fn.minutesFromDuration(xs.duration("-P5DT12H30M"));
=> -30
Powered by MarkLogic Server | Terms of Use | Privacy Policy