Loading TOC...

xs.dayTimeDuration.divide

xs.dayTimeDuration.divide(
   $value as number|xs.dayTimeDuration
) as xs.dayTimeDuration|number

Summary

Divides an xs.dayTimeDuration by an number. Returns an xs.dayTimeDuration. Or divides an xs.dayTimeDuration by an xs.dayTimeDuration. Returns an number.

Parameters
$value A number or day time duration.

Example

const v1 = xs.dayTimeDuration("P5DT4H");
const v2 = xs.dayTimeDuration("P1DT1H");
v1.divide(v2);

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy