Description
Divide into unbounded total hours and modulo-60 minutes/seconds; pad the latter to two digits and hours optionally to at least two.
Numeric-looking text has both a value and a written form. Signs, decimal places, exponent markers and trailing zeros can carry display information that ordinary numeric conversion discards; formatting a token does not verify its meaning.
Divide into unbounded total hours and modulo-60 minutes/seconds; pad the latter to two digits and hours optionally to at least two.
When to use this tool
Use Clock Duration Over 24 Hour Label when you need the specified literal representation or text-level numeric diagnostic.
How to use the tool and how it works
- Enter seconds, padHours. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read text. Use the output convention below.
Require nonnegative integer seconds. Divide into unbounded total hours and modulo-60 minutes/seconds; pad the latter to two digits and hours optionally to at least two.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| seconds | Seconds | Required. Safe integer; minimum 0. |
| padHours | Pad Hours | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| text | Literal formatted output under the stated grammar and display convention. | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"seconds": 90061,
"padHours": true
},
"output": {
"text": "25:01:01"
}
} Limitations and assumptions
- This is elapsed-duration text, not time of day: hours can exceed 24. No date, timezone, or calendar conversion occurs.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use a locale-aware or destination-specific formatter when broader parsing and presentation rules are needed. Retain original text when lexical precision matters and validate numeric meaning separately.
References
Similar or alternative tools
- Mixed Unit Component Leading Zero Style
Left-pad each numeric component to its minimum width and join with separator.
- Binary Unit Symbol Spacing Tool
Calculate binary unit symbol spacing from explicit caller-supplied inputs.