duration-add
Returns the duration obtained by adding two durations.

Languages
Built-in, C++, C#, Java.
Parameters
Name | Type | Description |
---|---|---|
duration1 | xs:duration | Provides the first input value of type xs:duration. |
duration2 | xs:duration | Provides the second input value of type xs:duration. |
Example
If the first duration is P0Y0M3DT03H0M (3 days and 3 hours) and the second duration is P0Y0M3DT01H0M (3 days and 1 hour), then the function returns P6DT4H (6 days and 4 hours).