Skip to content
hateitall

Hours Between Two Times

Work out how long a shift, trip or event lasted, overnight or over several days, in hours and decimal hours.

Processed locallyIn: Time, DateOut: Duration

Loading tool…

How to use hours between two times

  1. Choose Times in one day for a shift, or Dates and times for anything longer.

  2. Enter the start and end; an end earlier than the start counts as the next day.

  3. Add an unpaid break if there was one.

  4. Read the duration, decimal hours and the time after the break.

What this tool does

  • Night shifts that cross midnight.
  • Spans over several days in any time zone, measured in real elapsed time.
  • Notices when a daylight saving change falls in between and explains the difference.
  • Subtracts a break and shows decimal hours.

How the result is verified

Each start and end is turned into a real instant with the browser's time zone data and the difference is taken in seconds, so it can be checked against the offsets shown when a clock change is involved.

Frequently asked questions

How many hours is 9:00 to 17:30?

8 hours 30 minutes, or 8.5 hours. With a 30 minute unpaid break, 8 hours are worked.

Does a daylight saving change affect a night shift?

Yes. In the US, a shift from 22:00 to 06:00 on the night the clocks go forward lasts 7 hours, and on the night they go back, 9. Use Dates and times mode with your time zone to get the real figure.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

One time in many zones, with daylight saving and day changes shown

Date · Time · Time zone→ DateLight on device