| Description | XSD "duration" type The lexical representation for duration is the ISO 8601 extended format PnYnMnDTnHnMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds. The number of seconds can include decimal digits to arbitrary precision. P is required. | 
|---|
| Comments | The type xsd:durationrepresents a duration of time expressed as a number of years, months, days, hours, minutes, and seconds. The format ofxsd:durationisPnYnMnDTnHnMnS, wherePis a literal value that starts the expression,nYis the number of years followed by a literalY,nMis the number of months followed by a literalM,nDis the number of days followed by a literalD,Tis a literal value that separates the date and time,nHis the number of hours followed by a literalH,nMis the number of minutes followed by a literalM, andnSis the number of seconds followed by a literalS. The following rules apply toxsd:durationvalues: Any of these numbers and corresponding designators may be absent if they are equal to 0, but at least one number and designator must appear.The numbers may be any unsigned integer, with the exception of the number of seconds, which may be an unsigned decimal number.If a decimal point appears in the number of seconds, there must be at least one digit after the decimal point.A minus sign may appear before the Pto specify a negative duration.If no time items (hour, minute, second) are present, the letter Tmust not appear.
 Examples: "P2Y6M5DT12H35M30S": 2 years, 6 months, 5 days, 12 hours, 35 minutes, 30 seconds"PT20M": 20 minutes
 | 
|---|