Description
Test start-inclusive/end-exclusive membership, allowing wrap across midnight; equal endpoints define an empty window.
Personal health logs distinguish clock coordinates, elapsed durations, pauses, and missing time metadata. A supplied time comparison organizes records without measuring an activity or assessing its health effects.
Test start-inclusive/end-exclusive membership, allowing wrap across midnight; equal endpoints define an empty window.
When to use this tool
Use Health Diary Safe Contact Time Window when you need one explicit diary-duration or clock-accounting component.
How to use the tool and how it works
- Enter minuteOfDay, start, end. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read inside, wrapsMidnight. Inspect inside, wrapsMidnight before interpreting the associated values.
Require minuteOfDay, start, and end in 0-1439. Test start-inclusive/end-exclusive membership, allowing wrap across midnight; equal endpoints define an empty window.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| minuteOfDay | Minute Of Day | Required. Safe integer; minimum 0; maximum 1439. |
| start | Start | Required. Safe integer; minimum 0; maximum 1439. |
| end | Excluded ending minute, 0-1439; equal start/end means an empty window. | Required. Safe integer; minimum 0; maximum 1439. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| inside | Inside | Required. Boolean. |
| wrapsMidnight | Wraps Midnight | Required. Boolean. |
{
"input": {
"minuteOfDay": 60,
"start": 1320,
"end": 120
},
"output": {
"inside": true,
"wrapsMidnight": true
}
} Limitations and assumptions
- A supplied contact window is not verified consent or a guarantee that contact is safe; timezone, daylight-saving transitions, and emergency handling are outside the calculation.
- 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
Retain dates and offset information and consult an appropriate professional for questions about health, care, or suitable activity.
References
Similar or alternative tools
- Gynecologic Study Contact Consent Match
Compare them with supplied permitted lists, test expiry under inclusive, and set eligible only when active and all comparisons pass.
- Consented Use Expiry Offset
Subtract useAt from expiry for remaining and mark expired when useAt is greater than or equal to expiry.