Description
Round valid civil time to the nearest minute.
Timestamp notation distinguishes written precision, quantization and carry into the next larger field. Padding a fraction, rounding it and propagating an end-of-day marker are different operations and do not establish clock accuracy.
Round valid civil time to the nearest minute.
When to use this tool
Use Datetime Minute Rounding Day Carry when checking one explicit timestamp precision, rounding or carry convention.
How to use the tool and how it works
- Enter hour, minute, second. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read hour, minute, dayCarry. Use the output convention below.
Round valid civil time to the nearest minute. Require whole hour 0-23/minute 0-59 and second in [0,60); round upward at second >= 30 and split modulo day fields with dayCarry.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| hour | Hour | Required. Safe integer; minimum 0; maximum 23. |
| minute | Minute | Required. Safe integer; minimum 0; maximum 59. |
| second | Second | Required. Finite number; minimum 0; strictly below 60. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| hour | Hour | Required. Safe integer. |
| minute | Minute | Required. Safe integer. |
| dayCarry | Day Carry | Required. Safe integer. |
{
"input": {
"hour": 23,
"minute": 59,
"second": 45
},
"output": {
"hour": 0,
"minute": 0,
"dayCarry": 1
}
} Limitations and assumptions
- This uses half-up nonnegative second rounding, not a timezone-aware timestamp operation.
- 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 complete date-time arithmetic when a carry must change a date or interact with timezone transitions.
References
Similar or alternative tools
- Timestamp Fraction Rounding Second Carry
Round fractional-second digits with carry.
- Civil Time Millisecond Tie Carry
Round one second and millisecond pair under up or even tie policy.