Description
Parse and order two strict Gregorian date intervals with exclusive ends.
Treaty and diplomatic records contain dates, party categories, and explicitly defined term boundaries. Arithmetic can check chronology and counts without determining the legal effect of an instrument.
Parse and order two strict Gregorian date intervals with exclusive ends.
When to use this tool
Use Diplomatic Tenure Overlap Days when you need a source-record chronology or party-count check.
How to use the tool and how it works
- Enter firstStart, firstEndExclusive, secondStart, secondEndExclusive. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read overlapDays. Use the output convention below.
Parse and order two strict Gregorian date intervals with exclusive ends. Return the positive intersection length in whole UTC days or zero.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstStart | First Start | Required. Text; maximum UTF-16 length 8192. |
| firstEndExclusive | First End Exclusive | Required. Text; maximum UTF-16 length 8192. |
| secondStart | Second Start | Required. Text; maximum UTF-16 length 8192. |
| secondEndExclusive | Second End Exclusive | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| overlapDays | Overlap Days | Required. Safe integer. |
{
"input": {
"firstStart": "2024-01-01",
"firstEndExclusive": "2024-01-10",
"secondStart": "2024-01-05",
"secondEndExclusive": "2024-01-15"
},
"output": {
"overlapDays": 5
}
} Limitations and assumptions
- Touching intervals have zero overlap; identity, role, and actual diplomatic tenure are supplied externally.
- 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
Consult the authoritative instrument, depositary records, and qualified legal interpretation for actual status or obligations.
References
Similar or alternative tools
- Treaty Party Date Order Flag
Parse strict real YYYY-MM-DD dates at UTC midnight.
- Treaty Entry Delay Days
Subtract signatureDay from entryDay for calendarDelay and subtract suppliedExcludedDays for adjustedDelay.