How to use this developer tool
- Paste or type a value in the input area.
- Choose the conversion option when one is available.
- Select Parse Duration or press Ctrl/Cmd + Enter.
- Review the interpretation and copy or download the result.
Break an ISO 8601 duration into years, months, weeks, days, hours, minutes, and fractional seconds. The report preserves calendar-dependent units instead of pretending that every month has the same length. When the input contains only weeks, days, and clock units, it also calculates an exact total in seconds and milliseconds.
ISO 8601 durations use P for the date section and T before time fields. M means months before T and minutes after T.
Years and months need a starting calendar date before they can be converted to an exact number of seconds.
Try the sample input, then run the converter. The output panel reports the normalized value and the fields used to derive it.
P1Y2M3DT4H5M6.75S
Match the ordered duration components, reject empty or mixed week forms, and total only units with fixed lengths.
Years and months need a starting calendar date before they can be converted to an exact number of seconds.
Use the format shown in the sample. The parser rejects empty input and reports malformed values instead of guessing silently.
UTC and offset-aware values represent a fixed instant. Any output labeled local uses the timezone configured in your browser.
The output is copy-ready, but verify it against the date library and runtime used by your application, especially for legacy formats.
Browsers may ship different timezone database versions and may parse non-standard legacy date strings differently. Prefer explicit standard formats.
No. The conversion runs in this page with browser APIs and does not require a network request.
| Value | Meaning |
|---|---|
| UTC | Coordinated Universal Time |
| Unix epoch | 1970-01-01T00:00:00Z |
| ISO 8601 | International date and time notation |