xs.time.add( value as xs.dayTimeDuration ) as xs.time
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. |
const v1 = xs.time('12:30:45-05:00'); const v2 = xs.dayTimeDuration("PT1H"); v1.add(v2);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.