ISO 8601 Duration & Interval Parser — P1DT2H30M | tick.pro
Parse and generate ISO 8601 duration and interval strings. Used by Google APIs, Luxon, .NET TimeSpan, and scheduling systems.
Format Reference
Duration
PnYnMnDTnHnMnS
Examples:
P1Y = 1 year
P3M = 3 months
P1DT2H = 1 day, 2 hours
PT30M = 30 minutes
PT1.5S = 1.5 seconds
Frequently Asked Questions
What is an ISO 8601 duration?
ISO 8601 durations represent time spans using the format PnYnMnDTnHnMnS. For example, P1DT2H means 1 day and 2 hours. The T separates date components from time components.
Where are ISO 8601 durations used?
Google APIs, XML schemas, .NET TimeSpan, Luxon, and many scheduling systems use ISO 8601 durations. They are the standard way to express time spans in machine-readable format.
curl "https://tick.pro/formats/iso-duration?input=P1DT2H30M"