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
- Enter timeToken. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| timeToken | Time Token | Required. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Returned object; expand its named members below. | Required. Object. |
| result.midnight | Midnight | Calculated result member: boolean. |
| result.dayCarry | Day Carry | Calculated result member: number. |
| result.normalizedTime | Normalized Time | Calculated result member: string. |
{
"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
Similar or alternative tools
- Date Time End Of Day Carry Field
Normalize a date-time end-of-day hour field.
- Day Fraction Midnight Wrap
Add day fractions and separate a signed whole-day carry.