MarkLogic Server 11.0 Product Documentation
fn:days-from-duration

fn:days-from-duration(
   $arg as xs:duration?
) as xs:integer?

Summary

Returns an xs:integer representing the days 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 day component will be returned.

Example

fn:days-from-duration(xs:duration("P3DT10H"))
=> 3

Example

fn:days-from-duration(xs:duration("P3DT55H"))
=> 5
Powered by MarkLogic Server | Terms of Use | Privacy Policy