Description
Return latest-earliest, adding one when includeEndpoints.
Calendar coordinates depend on an era, origin, day-start rule, and sometimes an arithmetic rather than observational convention. A supplied coordinate difference does not resolve those choices.
Return latest-earliest, adding one when includeEndpoints.
When to use this tool
Use Historical Date Bound Width when you need a documented calendar convention or source-coordinate comparison.
How to use the tool and how it works
- Enter earliestIndex, latestIndex, includeEndpoints. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read width. Use the output convention below.
Require earliestIndex no later than latestIndex. Return latest-earliest, adding one when includeEndpoints.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| earliestIndex | Earliest Index | Required. Safe integer. |
| latestIndex | Latest Index | Required. Safe integer. |
| includeEndpoints | Include Endpoints | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| width | Interval or dimension span under the stated unit and endpoint convention. | Required. Safe integer. |
{
"input": {
"earliestIndex": 100,
"latestIndex": 130,
"includeEndpoints": true
},
"output": {
"width": 31
}
} Limitations and assumptions
- Inclusive width assumes discrete unit-spaced labels; source coordinates are not parsed dates or a validated historical chronology.
- 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
Consult the source calendar and authoritative date information for actual observance, conversion, or historical dating.
References
Similar or alternative tools
- Chronology Event Interval Width
Require latest at least earliest and subtract for width.
- Public Source Edition Date Width
Require earliestYear no later than latestYear and return their difference, adding one only when inclusive.