Time Between Times
Calculate the time difference between two times.
8h 0m 0s
time difference
Total Hours:8.00
Total Minutes:480
Total Seconds:28,800
Decimal Hours:8.0000
How to Do It Manually
Subtract the start time from the end time. Convert both to total minutes from midnight, subtract, then convert back to hours and minutes.
Duration = (End hours × 60 + End minutes) − (Start hours × 60 + Start minutes)
- Convert the start time to total minutes (hours × 60 + minutes).
- Convert the end time to total minutes.
- Subtract start minutes from end minutes.
- If negative, add 1440 (24 × 60) to handle crossing midnight.
- Convert the result back: divide by 60 for hours, remainder is minutes.
Frequently Asked Questions
What if the end time is before the start time (crosses midnight)?
Add 24 hours (1440 minutes) to the end time before subtracting to handle overnight spans.
How do I convert minutes to hours and minutes?
Divide total minutes by 60. The quotient is hours, the remainder is minutes. Example: 150 minutes = 2 hours 30 minutes.