Returns a value of type xs:duration calculated by combining the following parts supplied as arguments: year, month, day, hour, minute, second, millisecond, negative.
An example duration is P1Y2M3DT04H05M59S, where:
•"P" is the period designator, and is mandatory;
•The rest of the characters denote, in this order: 1 Year, 2 Months, 3 Days, T (Time designator), 04 Hours, 05 Minutes, 59 Seconds.
If the minus character appears before the "P" designator, this indicates a negative duration, for example: -P1D.
Built-in, C++, C#, Java.
Provides the year.
Provides the month.
Provides the day of the month.
Optional. Provides the hour.
Optional. Provides the minute.
Optional. Provides the second.
Optional. Provides the millisecond.
Optional. Must be true for a negative duration; false otherwise.
The following mapping generates a negative duration of 1 year, 4 months, 17 days, 8 hours, 58 minutes, and 54.333 seconds.
The mapping output is -P1Y4M17DT8H58M54.333S.