How to use this developer tool
- Paste or type a value in the input area.
- Choose the conversion option when one is available.
- Select Build Duration or press Ctrl/Cmd + Enter.
- Review the interpretation and copy or download the result.
Build a normalized ISO 8601 duration from readable key=value fields. Supply any combination of years, months, weeks, days, hours, minutes, and seconds; omitted units default to zero. The builder validates non-negative finite numbers, keeps fractional values where ISO notation permits them, and places date and time components on the correct side of the T separator.
The generated value is a duration expression, not an anchored date range. Calendar units remain calendar units and are not silently approximated as days.
Fractional values should normally appear only on the smallest unit used. Some consuming libraries impose stricter profiles than ISO 8601.
Try the sample input, then run the converter. The output panel reports the normalized value and the fields used to derive it.
years=1 months=2 days=3 hours=4 minutes=5 seconds=6.75
Parse supported keys case-insensitively, reject duplicates and unknown fields, trim trailing decimal zeroes, and assemble P plus date fields and an optional T section.
Fractional values should normally appear only on the smallest unit used. Some consuming libraries impose stricter profiles than ISO 8601.
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 |