ISO 8601 Duration Parser
Parse and explain P1Y2M3DT4H5M6S durations.
Human readable
1 year, 2 months, 3 days, 4 hours, 5 minutes, 6 seconds
Approx total seconds: 37,091,538
Approx total days: 429.30
Approx total hours: 10303.20
Examples
- PT1H - 1 hour
- PT15M - 15 minutes
- PT30S - 30 seconds
- P1D - 1 day
- P1W - 1 week
- P1Y - 1 year
- P1DT12H - 1 day 12 hours
ISO 8601 duration format. Used by YouTube API (video length), schema.org, ActivityStreams, and many calendar/scheduling APIs. Years and months are approximate (months vary in length, leap years exist).
About
Type an ISO 8601 duration like P1Y2M3DT4H5M6S. The tool returns the human-readable form plus approximate total seconds, days, and hours.
How to use
- Type an ISO duration.
FAQ
Where is this used?+
YouTube API video durations, schema.org, ActivityStreams, ISO 8601 calendars, and many scheduling APIs. PT5M30S = 5 min 30 sec.