Skip to content

Main content

Diplomatic Tenure Overlap Days Tool

Intersect supplied public tenure dates as half-open UTC civil-day intervals.

Loading tool…

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

  1. Enter firstStart, firstEndExclusive, secondStart, secondEndExclusive. 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 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 fieldMeaning and unitsAccepted input
firstStartFirst StartRequired. Text; maximum UTF-16 length 8192.
firstEndExclusiveFirst End ExclusiveRequired. Text; maximum UTF-16 length 8192.
secondStartSecond StartRequired. Text; maximum UTF-16 length 8192.
secondEndExclusiveSecond End ExclusiveRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
overlapDaysOverlap DaysRequired. Safe integer.
json
{
  "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

  1. Calculation and input contract: international-relations/diplomatic-tenure-overlap-days — tool.io

Similar or alternative tools