ISO 8601 Duration Converter
Parse an ISO 8601 duration string into its components, or build a duration string from individual year, month, week, day, hour, minute, and second values.
Parse an ISO 8601 duration string into its components, or build a duration string from individual year, month, week, day, hour, minute, and second values.
ISO Duration helps developers, API designers, and QA engineers parse or build ISO 8601 duration strings such as P1Y2M3DT4H5M6S into labeled components, human-readable summaries, and estimated totals. Use it for cron interval checks, API timeout documentation, scheduling logic reviews, and searchable workflows like ISO duration parser or duration string builder.
Use ISO Duration to parse ISO 8601 duration strings into labeled components and human-readable output, or to build a duration string from individual year, month, week, day, hour, minute, and second values.
ISO 8601 durations start with P and use designators: Y for years, M for months, W for weeks, D for days, T to begin the time section, then H for hours, M for minutes, and S for seconds. Example: P1Y2M3DT4H5M6S means 1 year, 2 months, 3 days, 4 hours, 5 minutes, and 6 seconds.
For parse mode, enter a duration string and receive components, a human-readable summary, and an estimated total in seconds. For build mode, provide numeric field values and receive the canonical duration string and summary.
ISO 8601 months and years vary in length. The estimate uses 30.44 days per month and 365.25 days per year as standard approximations. For exact durations, rely on the labeled components rather than the total seconds estimate.