Description
Check whether both visit endpoints fit within opening and return their nonnegative intersection duration.
Eligibility windows and numeric limits use explicit endpoints. A supplied age band, pass duration, opening interval, or allowance may include one boundary and exclude another; the implemented comparison determines that narrow result.
Check whether both visit endpoints fit within opening and return their nonnegative intersection duration.
When to use this tool
Use Tour Stop Opening Interval Match when you need to apply a supplied travel-service window or allowance consistently.
How to use the tool and how it works
- Enter visitStartMinute, visitEndMinute, opensMinute, closesMinute. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read entireVisitWithinOpening, overlapMinutes. Inspect entireVisitWithinOpening before interpreting the associated values.
Require ordered nonnegative integer visit and opening intervals. Check whether both visit endpoints fit within opening and return their nonnegative intersection duration.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| visitStartMinute | Visit Start Minute | Required. Safe integer; minimum 0. |
| visitEndMinute | Visit End Minute | Required. Safe integer. |
| opensMinute | Opens Minute | Required. Safe integer; minimum 0. |
| closesMinute | Closes Minute | Required. Safe integer. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| entireVisitWithinOpening | Entire Visit Within Opening | Required. Boolean. |
| overlapMinutes | Overlap Minutes | Required. Safe integer. |
{
"input": {
"visitStartMinute": 600,
"visitEndMinute": 660,
"opensMinute": 540,
"closesMinute": 1020
},
"output": {
"entireVisitWithinOpening": true,
"overlapMinutes": 60
}
} Limitations and assumptions
- Times share one minute coordinate and do not wrap midnight automatically; equality can indicate zero overlap for an empty interval.
- 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
Check the full provider policy and any exceptions that are not represented by the input fields.
References
Similar or alternative tools
- Museum Ticket Validity Window
Parse ordered validFromDate and validThroughDate and the visitDate as real Gregorian date strings.
- Client Contact Safe Window Match
Test start-inclusive/end-exclusive membership, joining the two sides of midnight when start exceeds end.