Loading TOC...

xs.time.subtract

xs.time.subtract(
   $value as xs.time|xs.dayTimeDuration
) as xs.dayTimeDuration|xs.time

Summary

Returns the difference between two xs.times as an xs.dayTimeDuration. Subtracts the value of the hours, minutes and seconds components of an xs.dayTimeDuration to an xs.time value.

Parameters
$value A time value or day time duration.

Example

const v1 = xs.time('12:30:45-05:00');
const v2 = xs.dayTimeDuration("PT1H");
v1.subtract(v2);

Comments

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