ISO 8601 Duration Parser
Read an ISO 8601 duration such as P1Y2M3DT4H5M6S and see each part and the total seconds, or turn a number of seconds into a duration.
How to read an ISO 8601 duration
Enter a duration
Such as P1Y2M3DT4H5M6S, or a number of seconds.
Read the result
Every value has its own Copy button.
Worked example
This is what ISO 8601 Duration Parser gives for its own sample values. Open the tool above and change anything to try your own.
ISO 8601 duration, or a number of seconds
P1Y2M3DT4H5M6S
Result
- Years
- 1
- Months
- 2
- Days
- 3
- Hours
- 4
- Minutes
- 5
- Seconds
- 6
- Total seconds
- 37090350
- Total minutes
- 618172.5
About ISO 8601 Duration Parser
Read durations such as PT1H30M or P3DT12H, used in APIs, video metadata and calendars, and see each part with the total in seconds, minutes, hours and days. A number of seconds can be turned into a duration.
FAQs
What does the T mean?
It separates the date part (years, months, days) from the time part (hours, minutes, seconds). PT5M is five minutes and P5M is five months.
Why is the total approximate?
Years and months differ in length, so the tool uses averages for them.
Can I do date arithmetic?
Use Add or Subtract from a Date.