This Simple DataTypedefines a value that represents a duration of time as a string. It shall conform to duration as defined in ISO 8601-1:2019.

NOTE: According to ISO 8601:2000 ‘Durations are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W as shown to the right. In these representations, the [n] is replaced by the value for each of the date and time elements that follow the [n]. Leading zeros are not required, but the maximum number of digits for each element should be agreed to by the communicating parties. The capital letters P, Y, M, W, D, T, H, M, and Sare designators for each of the date and time elements and are not replaced.

Pis the duration designator (historically called "period") placed at the start of the duration representation.

Yis the year designator that follows the value for the number of years.

Mis the month designator that follows the value for the number of months.

Wis the week designator that follows the value for the number of weeks.

Dis the day designator that follows the value for the number of days.

Tis the time designator that precedes the time components of the representation.

His the hour designator that follows the value for the number of hours.

Mis the minute designator that follows the value for the number of minutes.

Sis the second designator that follows the value for the number of seconds.

For example, "P3Y6M4DT12H30M5S" represents a duration of "three years, six months, four days, twelve hours, thirty minutes, and five seconds". Date and time elements including their designator may be omitted if their value is zero, and lower order elements may also be omitted for reduced precision. For example, "P23DT23H" and "P4Y" are both acceptable duration representations.’