xs.dateTime.add( value as xs.yearMonthDuration|xs.dayTimeDuration ) as xs.dateTime
Returns the end of a time period by adding an xs.yearMonthDuration to the xs.dateTime that starts the period. Returns the end of a time period by adding an xs.dayTimeDuration to the xs.dateTime that starts the period.
Parameters | |
---|---|
value | year month duration or day time duration. |
const v1 = xs.dateTime(xs.date('2013-08-15'), xs.time('12:30:45-05:00')); const v2 = xs.yearMonthDuration("P3Y3M"); v1.add(v2);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.