Night shift ends at 06:00, started at 22:00 - how many hours was that? Enter two clock times and get the absolute difference in hours, minutes, seconds and decimal format. Works across midnight.
Time Zone Difference Calculator - Hours Between Two Times
Night shift ends at 06:00, started at 22:00 - how many hours was that? Enter two clock times and get the absolute difference in hours, minutes, seconds and decimal format. Works across midnight.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Your shift started at 22:00 and ended at 06:30
That is 8 hours and 30 minutes. Simple enough on paper, but mental arithmetic across midnight gets messy fast - especially when payroll needs a decimal number, not "about eight and a half hours." This calculator takes any two clock times and returns the absolute gap in every format you might need: hours and minutes, a decimal value, and total minutes and seconds.
When does midnight change everything?
Without the midnight checkbox, the calculator finds the absolute difference between two times within the same day. Check the box, and it calculates the forward span from time 1 to time 2 across the date boundary. The table below shows how the same pair of times produces different results depending on the setting:
| Time 1 | Time 2 | Same day | Across midnight | Use case |
|---|---|---|---|---|
| 22:00 | 06:00 | 16 hr 0 min | 8 hr 0 min | Night shift |
| 23:30 | 02:15 | 21 hr 15 min | 2 hr 45 min | Evening event |
| 08:00 | 17:00 | 9 hr 0 min | 9 hr 0 min | Regular work day |
| 20:00 | 08:00 | 12 hr 0 min | 12 hr 0 min | 12-hour rotation |
People also ask
Scenarios where this calculator saves time
Started a task at 09:15, finished at 13:40.
Difference: 4 hr 25 min (4.42 h)
Day nurse: 07:00 to 19:30.
Difference: 12 hr 30 min (12.50 h)
Departure 14:20, landing 22:05.
Difference: 7 hr 45 min (7.75 h)
Clock in 22:00, clock out 06:00 (midnight).
Difference: 8 hr 0 min (8.00 h)
Started at 20:00, stopped at 23:45.
Difference: 3 hr 45 min (3.75 h)
How to use - step by step
- First time - type or select the first clock reading in HH:MM format (e.g. 08:00).
- Second time - type or select the second clock reading (e.g. 17:30).
- Crosses midnight - if the span goes past 00:00, enable this checkbox.
- Read the results - hours, minutes, decimal value, total minutes and total seconds.
AM/PM to 24-hour conversion
| 12-hour | 24-hour | 12-hour | 24-hour |
|---|---|---|---|
| 12:00 AM | 00:00 | 12:00 PM | 12:00 |
| 1:00 AM | 01:00 | 1:00 PM | 13:00 |
| 6:00 AM | 06:00 | 6:00 PM | 18:00 |
| 9:00 AM | 09:00 | 9:00 PM | 21:00 |
| 11:30 AM | 11:30 | 11:30 PM | 23:30 |
Related tools
Duration Calculator
Measure elapsed time between a defined start and end time - Open calculator
Weeks Calculator
Count weeks and days between two dates for pregnancy, projects and fitness plans - Open calculator
Day of Year Calculator
Convert any date to its ordinal day number (1-366) and back - Open calculator
Date Difference Calculator
Find the gap between two dates in years, months, weeks and days - Open calculator
Leap Year Calculator
Check any year for leap status, list leap years in a range, or find the nearest one - Open calculator