Skip to content

Main content

Date Time End Of Day Carry Field Tool

Compute date time end of day carry field from explicit bounded inputs.

Loading tool…

Description

Normalize a date-time end-of-day hour field.

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.

Normalize a date-time end-of-day hour field.

When to use this tool

Use Date Time End Of Day Carry Field when checking one explicit timestamp precision, rounding or carry convention.

How to use the tool and how it works

  1. Enter hour, minute, second. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read hour, dayCarry. Use the output convention below.

Normalize a date-time end-of-day hour field. Require hour 0-24/minute and second 0-59, allowing hour 24 only with both zero; return normalized hour and dayCarry.1

Input fieldMeaning and unitsAccepted input
hourHourRequired. Safe integer; minimum 0; maximum 24.
minuteMinuteRequired. Safe integer; minimum 0; maximum 59.
secondSecondRequired. Safe integer; minimum 0; maximum 59.
Output fieldInterpretationReturned shape
hourHourRequired. Safe integer.
dayCarryDay CarryRequired. Safe integer.
json
{
  "input": {
    "hour": 24,
    "minute": 0,
    "second": 0
  },
  "output": {
    "hour": 0,
    "dayCarry": 1
  }
}

Limitations and assumptions

  • Only the hour and carry are returned; apply the carry separately to an actual calendar date.
  • 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

  1. Calculation and input contract: date/date-time-end-of-day-carry-field — tool.io

Similar or alternative tools