Military Time Calculator
Start from a military time such as 2230, add or take away hours and minutes, and read the end time. A second box gives the hours between two times.
https://flxcode.com/military-time-calculator/
Example End time
- End time
- Day
- End time, 12 h
- End time, 24 h
- Time added
- The end time is on the next day, after crossing midnight.
How it was worked out
- Start: 22:30:00 is 81,000 seconds after midnight
- + 2:30:00 gives a running total of 2:30:00
- + 1:45:30 gives a running total of 4:15:30
- - 0:20:00 gives a running total of 3:55:30
- 81,000 + 14,130 = 95,130 seconds
- 95,130 seconds is 1 day later plus 2:25:30
Hours between two times
Four digits or a colon both work. An end time earlier than the start counts into the next day. 2400 works as an end time.
Example Time between
- Days, hours, minutes, seconds
- Hours, minutes, seconds
- Decimal hours
- Total minutes
- Total seconds
- The end time is earlier than the start time, so the span crosses midnight and is counted to the next day.
How it was worked out
- Start 22:00:00 is 79,200 s after midnight, end 06:00:00 is 21,600 s
- End is before start, so add 24 hours: 21,600 + 86,400 - 79,200 = 28,800 s
- 28,800 s = 8:00:00
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
Quick start
- Type the start time in the first box, with a colon or without: 2230 or 22:30.
- Fill a row with hours and minutes, and choose Add or Subtract. Add more rows if you need them.
- Read the end time. A +1 day beside it means it passed midnight.
- For the length of a shift, use the second box and type the start and the end.
Worked examples: add and subtract
| Start | Change | End on the 24 hour clock | Military form | What it is |
|---|---|---|---|---|
| 0800 | + 8:30 | 16:30 | 1630 | Start of a shift, add 8 h 30 min |
| 1630 | + 1:15 | 17:45 | 1745 | A meeting, add 1 h 15 min |
| 2230 | + 3:45 | 02:15 (+1 day) | 0215 (+1 day) | Night shift, add 3 h 45 min |
| 0100 | − 2:00 | 23:00 (-1 day) | 2300 (-1 day) | Take away 2 hours |
| 1900 | + 12:00 | 07:00 (+1 day) | 0700 (+1 day) | A 12 hour shift |
| 0000 | + 36:00 | 12:00 (+1 day) | 1200 (+1 day) | Midnight plus 36 hours |
Worked examples: hours between two times
| From | To | Time between | Decimal hours | What it is |
|---|---|---|---|---|
| 2200 | 0600 | 8:00:00 | 8.00 | Overnight, across midnight |
| 0800 | 1630 | 8:30:00 | 8.50 | A day shift |
| 1800 | 0200 | 8:00:00 | 8.00 | Evening into the night |
| 0600 | 1400 | 8:00:00 | 8.00 | Early shift |
| 0000 | 2400 | 24:00:00 | 24.00 | 2400 as the end of the day (the same moment as 0000 the next day) |
| 1230 | 1315 | 0:45:00 | 0.75 | Under an hour |
How the 24 hour clock adds up
- There are 60 minutes in an hour and 24 hours in a day, so carry at 60 and at 24.
- Past 2359 the clock goes to 0000 on the next day.
- Going back before 0000 lands on the previous day, so 0100 minus 2 hours is 2300.
- The span box counts an end that is earlier than the start into the next day.
To change a 12 hour time into military time, or back, use the military time converter. For longer spans, or spans over several days, the time duration calculator takes dates as well. To add up a list of durations without a start time, there is the time calculator.
Limits
- Clock times only. No time zones and no daylight saving change, so every day has 24 hours.
- Hours go from 00 to 23 and minutes from 00 to 59. 2400 is allowed only as an end time in the second box.
- The second box covers up to 24 hours. For more than a day, add the dates in the time duration calculator.
FAQ
What happens when the time passes midnight?
The clock wraps from 2359 to 0000 and the tool marks the end time +1 day. 2230 plus 3 h 45 min is 0215 the next day. Subtract in the same way: 0100 minus 2 hours is 2300 on the previous day, shown as -1 day.
How many hours are between 2200 and 0600?
Eight. When the end is earlier than the start, the tool counts through midnight: 2 hours to 2400, then 6 more. For two times on the same day, just subtract: 0800 to 1630 is 8 hours 30 minutes.
Is it 0000 or 2400?
Both mean midnight. 0000 is the start of a day and 2400 is the end of the same day. The span box accepts 2400 as an end time, so 0000 to 2400 is 24 hours. As a start time, or with minutes, such as 2430, it is not valid, and the tool says so.
Do I type a colon?
Either works. 1630 and 16:30 are the same time. A plain 8 is read as 08:00. A time with AM or PM is read as a 12 hour time, so 4:30 PM is 1630.
How do I work out a 12 hour shift?
Type the start, then add 12 hours. A shift from 1900 ends at 0700 the next day. In the lower box, 1900 to 0700 gives 12:00:00. Break time is not taken off here. For paid hours with breaks and overtime, use the hours calculator.
Does it handle time zones or daylight saving?
No. It treats every time as a clock time with no place, so a day always has 24 hours. A shift that crosses a clock change is an hour longer or shorter in real life. For two places, use the time zone converter.
More from FLXCode
- Military Time ConverterConvert 12 hour time to military 24 hour time and back, with a table of all 24 hours and how each one is said.
- Time Difference CalculatorFind the time between two times or between two dates with times, in days, hours, minutes and seconds, and decimal hours.
- Time CalculatorAdd and subtract hours, minutes and seconds, or add a duration to a time of day to get the end time.
- Multiple timers and stopwatchesMany named timers and stopwatches on one page. Colours, saved sets, alarms, right time after closing, CSV export.