Description
Split duration into the first remainder to midnight and subsequent 1440-minute segments.
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.
Split duration into the first remainder to midnight and subsequent 1440-minute segments.
When to use this tool
Use Health Diary Fixed Offset Midnight Split when you need one explicit diary-duration or clock-accounting component.
How to use the tool and how it works
- Enter startLocalMinute, durationMinutes. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read segments. Use the output convention below.
Require startLocalMinute in 0-1439 and integer durationMinutes in 0-366000. Split duration into the first remainder to midnight and subsequent 1440-minute segments.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| startLocalMinute | Start Local Minute | Required. Safe integer; minimum 0; maximum 1439. |
| durationMinutes | Duration Minutes | Required. Safe integer; minimum 0; maximum 366000. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| segments | Segments | Required. Array of safe integer; maximum items 256. |
{
"input": {
"startLocalMinute": 1380,
"durationMinutes": 180
},
"output": {
"segments": [
60,
120
]
}
} Limitations and assumptions
- A zero duration returns no segments; this uses fixed-length local days without dates, offsets, daylight-saving changes, or interpreting the diary activity.
- 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
- Sleep Entry Clock Reference Pair
Return localEnd-localStart, endOffset-startOffset, and local duration minus offset change as elapsedMinutes.
- Health: Appointment Rem In Der Fixed Offset
Parse a real Gregorian appointmentDate in years 0001-9999, minute of day 0-1439, and earlier offset 0-525600 minutes.