Duration Formatter
Format a duration in seconds as compact human text or an ISO-8601 duration.
Description
Format a duration in seconds as compact human text or an ISO-8601 duration.
Duration Formatter: Format a duration in seconds as compact human text or an ISO-8601 duration.
When to use Duration Formatter
Use this formatter to present a known value in a consistent human-readable or system-oriented representation without changing the underlying value.
- Seconds (s)
- Duration in seconds.
- Style
- Output convention.
How Duration Formatter works
Format a duration in seconds as compact human text or an ISO-8601 duration. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1
- Formatted
- Formatted duration text.
Limitations and assumptions
- Formatting choices can be locale-, platform-, or convention-dependent. Currency symbols, decimal separators, byte bases, duration rounding, file permissions, padding, and mixed-unit signs can make the same display ambiguous if context is omitted.
- Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.
Alternative or Complementary approaches
Keep the machine-readable source value and unit separately, specify locale and rounding, and round-trip or parse-test output when another system will consume it.
References
-
Data formatting — Wikipedia contributors
Similar or alternative tools
- Byte Size Formatter
Format a byte count as human-readable text using SI or IEC unit conventions.
- Currency Formatter
Format a finite amount using an explicit currency code and locale.
- Feet and Inches Formatter
Format total inches as conventional feet and inches notation.