MarkLogic 9 Product Documentation
xs.dayTimeDuration.subtract

xs.dayTimeDuration.subtract(
   value as xs.dayTimeDuration
) as xs.dayTimeDuration

Summary

Subtracts one xs.dayTimeDuration from another. Returns an xs.dayTimeDuration.

Parameters
value A day time duration.

Example

const v1 = xs.dayTimeDuration("P5DT4H");
const v2 = xs.dayTimeDuration("P1DT1H");
v1.subtract(v2);
Powered by MarkLogic Server | Terms of Use | Privacy Policy