Calculator: Union of daily time intervals

Enter the labelled inputs to calculate: Duration (min); Duration (h); Number of merged intervals; Merged intervals.

Duration (min)
240
Duration (h)
4
Number of merged intervals
2
Merged intervals
09:00–12:00; 14:00–15:00

How the calculation works

T=|∪[aᵢ,bᵢ]|; 0≤aᵢ≤bᵢ<24h

Dates use the proleptic Gregorian calendar at UTC midnight, without local daylight-saving effects. Date overlaps include both endpoints. ISO weeks start on Monday and week 1 contains January 4. Sidereal time is an approximate mean UT1 model near J2000, without nutation corrections.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

T=|∪[aᵢ,bᵢ]|; 0≤aᵢ≤bᵢ<24h

What assumptions apply?

Dates use the proleptic Gregorian calendar at UTC midnight, without local daylight-saving effects. Date overlaps include both endpoints. ISO weeks start on Monday and week 1 contains January 4. Sidereal time is an approximate mean UT1 model near J2000, without nutation corrections.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Start times (HH:MM) = 09:00 09:30 13:00
End times (HH:MM) = 10:00 11:00 14:15
Duration (min): 195
Duration (h): 3.25
Number of merged intervals: 2
Merged intervals: 09:00–11:00; 13:00–14:15
2
Start times (HH:MM) = 08:00 10:00
End times (HH:MM) = 10:00 12:30
Duration (min): 270
Duration (h): 4.5
Number of merged intervals: 1
Merged intervals: 08:00–12:30
3
Start times (HH:MM) = 07:15
End times (HH:MM) = 07:45
Duration (min): 30
Duration (h): 0.5
Number of merged intervals: 1
Merged intervals: 07:15–07:45

How we test our calculators →

Also try:

Back to category →