ISO 8601 Duration Parser
Parse ISO 8601 duration strings into components or build duration strings from individual time units.
ISO 8601 Duration String
Enter a duration string to parse (e.g., P1Y2M3DT4H5M6S)
Presets
Parsed Result
Duration breakdown and conversions
1
Years
2
Months
3
Days
4
Hours
5
Minutes
6
Seconds
1 year, 2 months, 3 days, 4 hours, 5 minutes, and 6 seconds
Total Seconds (approximate)
37,090,350
Total seconds is approximate because months (30.44 days) and years (365.25 days) have variable lengths.
ISO 8601 Duration Format
P
n
Yn
Mn
D Tn
Hn
Mn
SP
Period (required)
Y / M / D
Years / Months / Days
T
Time separator
H / M / S
Hours / Minutes / Seconds