FLXCode Military Time Calculator

FLXCode apps

Appearance

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.

Clock

Example End time

02:25:30 (+1 day)
  • End time02:25:30
  • DayNext day (+1 day)
  • End time, 12 h2:25:30 AM
  • End time, 24 h02:25:30
  • Time added3:55:30
  • The end time is on the next day, after crossing midnight.

How it was worked out

  1. Start: 22:30:00 is 81,000 seconds after midnight
  2. + 2:30:00 gives a running total of 2:30:00
  3. + 1:45:30 gives a running total of 4:15:30
  4. - 0:20:00 gives a running total of 3:55:30
  5. 81,000 + 14,130 = 95,130 seconds
  6. 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

8 hours
  • Days, hours, minutes, seconds8 hours
  • Hours, minutes, seconds8:00:00
  • Decimal hours8.00
  • Total minutes480
  • Total seconds28,800
  • 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

  1. Start 22:00:00 is 79,200 s after midnight, end 06:00:00 is 21,600 s
  2. End is before start, so add 24 hours: 21,600 + 86,400 - 79,200 = 28,800 s
  3. 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

  1. Type the start time in the first box, with a colon or without: 2230 or 22:30.
  2. Fill a row with hours and minutes, and choose Add or Subtract. Add more rows if you need them.
  3. Read the end time. A +1 day beside it means it passed midnight.
  4. For the length of a shift, use the second box and type the start and the end.

Worked examples: add and subtract

StartChangeEnd on the 24 hour clockMilitary formWhat it is
0800+ 8:3016:301630Start of a shift, add 8 h 30 min
1630+ 1:1517:451745A meeting, add 1 h 15 min
2230+ 3:4502:15 (+1 day)0215 (+1 day)Night shift, add 3 h 45 min
0100− 2:0023:00 (-1 day)2300 (-1 day)Take away 2 hours
1900+ 12:0007:00 (+1 day)0700 (+1 day)A 12 hour shift
0000+ 36:0012:00 (+1 day)1200 (+1 day)Midnight plus 36 hours

Worked examples: hours between two times

FromToTime betweenDecimal hoursWhat it is
220006008:00:008.00Overnight, across midnight
080016308:30:008.50A day shift
180002008:00:008.00Evening into the night
060014008:00:008.00Early shift
0000240024:00:0024.002400 as the end of the day (the same moment as 0000 the next day)
123013150:45:000.75Under 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.

Share Military Time Calculator