Loading TOC...

xs.time.add

xs.time.add(
   $value as xs.dayTimeDuration
) as xs.time

Summary

Adds the value of the hours, minutes and seconds components of an xs.dayTimeDuration to an xs.time value.

Parameters
$value A day time duration.

Example

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

Comments

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