---
id: "iso8601duration"
kind: "pattern"
status: "stable"
is_pii: false
categories: ["datetime"]
langs: ["common"]
quality: 43
url: "https://registry.apicrafter.io/datatype/iso8601duration"
---

# Duration (`iso8601duration`)

The amount of intervening time in a time interval and are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W as shown on the aside

- Pattern of: `duration`
- Personal data (PII): no
- Categories: Date and time (datetime)
- Countries: global
- Languages: Common to most languages (common)

## Examples

- `P3Y6M4DT12H30M5S` — Three years, six months, four days, twelve hours, thirty minutes, and five seconds

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/ISO_8601#Durations>

## Quality

Score 43/100. Missing: regexp, second example, negative example, mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/iso8601duration.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/iso8601duration.yaml>
