Time Duration Calculator
How long from one time to another, to the second.
How long from one time to another, to the second. Add dates for a span of several days; a time that is earlier than the first one is read as the next day.
Duration
4 h 24 min 45 s
From 9:45:20 am to 2:10:05 pm.
- Decimal hours
- 4.4125
- In minutes
- 264.75
- In seconds
- 15,885
How this works: 10 sources,
How this works
Method
Both times become seconds after midnight: hours × 3,600 + minutes × 60 + seconds. The duration is the second minus the first. Without dates, a second time that is earlier than the first is read as the next day, so 11 pm to 1 am is 2 hours, not minus 22. Full method
Sources
- Sexagesimal (base 60, why an hour has 60 minutes) (Wikipedia)
- 15 U.S.C. 260a, advancement of time (daylight saving time) (Cornell Law School, Legal Information Institute)
- 24-hour clock (military time, ISO 8601 notation) (Wikipedia)
- 29 U.S.C. 207, maximum hours (Fair Labor Standards Act, section 7) (Cornell Law School, Legal Information Institute)
- Fact Sheet #23: Overtime Pay Requirements of the FLSA (U.S. Department of Labor, Wage and Hour Division)
- 29 CFR 778.104, each workweek stands alone (Cornell Law School, Legal Information Institute)
- 29 CFR 785.48, use of time clocks (rounding) (Cornell Law School, Legal Information Institute)
- California Labor Code section 510, overtime (California Legislative Information)
- DLSE opinion letter 2000.01.19 (daily overtime hours and the weekly 40) (California Division of Labor Standards Enforcement, 2000)
- Enforcement Policies and Interpretations Manual, section 48 (workday, workweek, seventh day) (California Division of Labor Standards Enforcement)
How it’s tested
One worked example for this page is checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: weekly and two-week time cards with draggable day bars, federal and California overtime, pay, CSV and saved weeks, plus eight time pages.
From 4:58:40 pm to 7:12:05 pm, worked out
Line the times up and subtract column by column, borrowing like long subtraction: 5 seconds minus 40 needs a minute borrowed, so 65 − 40 = 25 seconds; 11 minutes (after the borrow) minus 58 needs an hour borrowed, so 71 − 58 = 13 minutes; 18 hours minus 16 is 2. The duration is 2 h 13 min 25 s, or 2.2236 hours, or 8,005 seconds.
How the time between two times is worked out
Both times become seconds after midnight: hours × 3,600 + minutes × 60 + seconds. The duration is the second minus the first. Without dates, a second time that is earlier than the first is read as the next day, so 11 pm to 1 am is 2 hours, not minus 22.
With dates on, the whole days between the two dates are added first (86,400 seconds each), counted on the calendar so a leap day is included when it falls in between. Then the two times of day are subtracted. The answer is shown in days, hours, minutes and seconds, as decimal hours to four places, and as total minutes and seconds.
It is clock time. A span that crosses a daylight saving change lasts an hour more or less in real time than the clocks show; the calculator gives the clock-face answer on purpose, which is the one a schedule or a time sheet uses.
duration = days × 86,400 s + (end − start), + 86,400 s if the end is earlier and no dates are set
- Minutes and seconds come in sixties because time keeping inherited the Babylonians’ base-60 numbers, which is why time can’t be subtracted like decimals. Source: Wikipedia, Sexagesimal (base 60, why an hour has 60 minutes).
- A US clock change happens at 2 am local time: in March the hour from 2 to 3 am never happens, and in November the hour from 1 to 2 am happens twice. Source: Cornell Law School, Legal Information Institute, 15 U.S.C. 260a, advancement of time (daylight saving time).
- The 24-hour clock runs from 00:00:00 at midnight to 23:59:59, which avoids having to say am or pm. Source: Wikipedia, 24-hour clock (military time, ISO 8601 notation).
Durations between common times
Each pair worked out by the calculator; where the second time is earlier, it is read as the next day.
| From | To | Duration | Decimal hours | Seconds |
|---|---|---|---|---|
| 8:00 am | 5:00 pm | 9 h | 9.0000 | 32,400 |
| 9:15:30 am | 11:02:45 am | 1 h 47 min 15 s | 1.7875 | 6,435 |
| 1:45 pm | 2:20:10 pm | 35 min 10 s | 0.5861 | 2,110 |
| 6:30 am | 6:45 pm | 12 h 15 min | 12.2500 | 44,100 |
| 11:59:30 pm | 12:00:15 am | 45 s | 0.0125 | 45 |
| 10:00 pm | 6:30 am | 8 h 30 min | 8.5000 | 30,600 |
| 12:00 am | 11:59:59 pm | 23 h 59 min 59 s | 23.9997 | 86,399 |
| 10:10:10 am | 10:10:09 am | 23 h 59 min 59 s | 23.9997 | 86,399 |
| 7:05 am | 7:05:45 am | 45 s | 0.0125 | 45 |
| 12:00 pm | 12:00 am | 12 h | 12.0000 | 43,200 |
Sources
Common questions
How do I find the time between two times?
Subtract the earlier time from the later one, seconds first, then minutes, then hours, borrowing 60 when a column goes negative. If the later time is on the next day, add 24 hours to it before subtracting. The calculator shows the answer in all the common forms.
Does it work across several days?
Yes. Turn on Add dates and pick a start and an end date. The days in between are counted on the calendar, then the times of day are subtracted, so Friday 6 pm to Monday 8 am is 2 days 14 hours.
Can I leave out the seconds?
Yes: set the seconds to 00, or use the hours worked page, which works in minutes. The duration then comes out in whole minutes.
How do I count days only, not times?
Use the date calculator, which counts the days between two dates, with or without weekends and public holidays.