Returns the duration obtained by adding two durations.
Built-in, C++, C#, Java.
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. |
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).