Description
Return nonnegative distances before or after the window and accessibleByDates for inclusive membership.
An access tier or availability window records only part of an authorization policy. Known dates and rank comparisons do not establish identity, consent, or cultural permission to use material.
Return nonnegative distances before or after the window and accessibleByDates for inclusive membership.
When to use this tool
Use Public Source Access Window Gap when you need a supplied access-metadata consistency check.
How to use the tool and how it works
- Enter availableFrom, availableUntil, requestedDay. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read beforeWindow, afterWindow, accessibleByDates. Inspect accessibleByDates before interpreting the associated values.
Require availableUntil ≥ availableFrom. Return nonnegative distances before or after the window and accessibleByDates for inclusive membership.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| availableFrom | Available From | Required. Safe integer. |
| availableUntil | Available Until | Required. Safe integer. |
| requestedDay | Requested Day | Required. Safe integer. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| beforeWindow | Before Window | Required. Safe integer. |
| afterWindow | After Window | Required. Safe integer. |
| accessibleByDates | Inclusive date-window result only; does not establish permission. | Required. Boolean. |
{
"input": {
"availableFrom": 10,
"availableUntil": 20,
"requestedDay": 15
},
"output": {
"beforeWindow": 0,
"afterWindow": 0,
"accessibleByDates": true
}
} Limitations and assumptions
- This checks supplied dates only; access rights, community protocols, consent, and cultural restrictions remain separate requirements.
- 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 responsible authority, community protocol, and actual access-control policy before retrieving or reusing material.
References
Similar or alternative tools
- Document Access Tier Order
If known, compare requester and document indices in the selected direction and return requester minus document as tierGap; otherwise return gap zero and allowed false.
- Controlled Vocabulary One Deprecation Date
Compare recordDay with effectiveDay using ≥ for inclusive or > otherwise.