Skip to content

Main content

Date: Date Boundary Midnight Endpoint Label Tool

Distinguish the interval-end spelling 24:00 from start-of-day 00:00, retaining day carry instead of silently treating both as one instant.

Loading tool…

Description

Classify midnight token spellings and normalize end-of-day notation.

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.

Classify midnight token spellings and normalize end-of-day notation.

When to use this tool

Use Date: Date Boundary Midnight Endpoint Label when checking one explicit timestamp precision, rounding or carry convention.

How to use the tool and how it works

  1. Enter timeToken. 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 result. Expand result to inspect the returned fields.

Classify midnight token spellings and normalize end-of-day notation. Accept HH:MM or exactly 24:00; midnight flags 00:00/24:00, with one day carry only for 24:00.1

Input fieldMeaning and unitsAccepted input
timeTokenTime TokenRequired. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units.
Output fieldInterpretationReturned shape
resultReturned object; expand its named members below.Required. Object.
result.midnightMidnightCalculated result member: boolean.
result.dayCarryDay CarryCalculated result member: number.
result.normalizedTimeNormalized TimeCalculated result member: string.
json
{
  "input": {
    "timeToken": "24:00"
  },
  "output": {
    "result": {
      "midnight": true,
      "dayCarry": 1,
      "normalizedTime": "00:00"
    }
  }
}

Limitations and assumptions

  • A normalized 00:00 must be interpreted with dayCarry; no date or timezone is resolved.
  • Outputs are nested inside result. 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.

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-boundary-midnight-endpoint-label — tool.io

Similar or alternative tools