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);

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.