Military Time Converter
With hour 2, minutes 30, military time converter comes to 1430 — military time. It is reached in 3 steps, the last of which is h24 * 100 + minute, and each one is printed on the page with its numbers filled in. The formula is the one published by NIST Time and Frequency Division, not an approximation fitted to it.
A clock time as military time, with the full chart of all twenty-four hours and the two readings people get wrong: midnight and noon.
By Alex Seote, Built and maintains Rule Calculator · Formula and sources checked · How we check
Hour 2, am or pm pm, Minutes 30
1430
Military time for the example below. Editing a field recomputes the calculator below; this figure holds the answer the page was loaded with.
It is written into the HTML rather than drawn by a script, so a search engine reading this page without running JavaScript still finds an answer.
- Hour on the 24-hour clock
meridiem_pm > 0 ? (hour12 == 12 ? 12 : hour12 + 12) : (hour12 == 12 ? 0 : hour12)14- Military time
h24 * 100 + minute1,430- Minutes since midnight
h24 * 60 + minute870
Worked example
2:30 pm is 1430. Add twelve to any pm hour except twelve itself, which stays 12 — and 12 am goes the other way, to 0000. Those two are the whole difficulty; every other hour is a straight addition.
How to work it out yourself
- 1.An am hour keeps its number: 9 am is 0900. The exception is 12 am, which becomes 0000 rather than 1200.
- 2.A pm hour gains twelve: 2 pm is 1400. The exception is 12 pm, which is already twelve and stays 1200.
- 3.Military time is written as four digits without a colon and spoken in hundreds — 1430 is "fourteen thirty", 0600 is "oh six hundred". The minutes never change in either direction.
Military time chart
| Hour | Military time |
|---|---|
| 1 | 1330 |
| 2 | 1430 |
| 3 | 1530 |
| 4 | 1630 |
| 5 | 1730 |
| 6 | 1830 |
| 7 | 1930 |
| 8 | 2030 |
| 9 | 2130 |
| 10 | 2230 |
| 11 | 2330 |
| 12 | 1230 |
Every hour on the chosen half of the day, on the minute you entered. Switch am and pm above to see the other twelve.
The formula
- Hour on the 24-hour clock
meridiem_pm > 0 ? (hour12 == 12 ? 12 : hour12 + 12) : (hour12 == 12 ? 0 : hour12) - Military time
h24 * 100 + minute - Minutes since midnight
h24 * 60 + minute
Source: NIST Time and Frequency Division
Questions people actually ask
- Is midnight 0000 or 2400?
- Both are used and they mean different instants. 0000 is the start of a day; 2400 is the end of the previous one, and they are the same moment described from either side. A time of day is written 0000; 2400 appears where an interval has to close, such as a shift ending at midnight.
- What is 12 pm in military time?
- 1200. Noon is the one pm hour that does not gain twelve, because it already is twelve. Its mirror image is 12 am, which becomes 0000 rather than 1200 — those two exceptions account for nearly every mistake in this conversion.
- What time is 1800?
- Six in the evening. Any figure above 1200 loses twelve to give the 12-hour reading and is pm: 1800 becomes 6 pm, 2145 becomes 9:45 pm. Below 1200 the hour is unchanged and am, except 00, which is 12 am.
- Why is it written without a colon?
- Because it is read as a single four-digit group rather than as hours and minutes. The colon belongs to the civilian 24-hour clock, which writes the same time as 14:30 and means exactly the same thing — the arithmetic is identical and only the notation differs.
Related
- Time CalculatorAdd, subtract, multiply or divide durations in days, hours, minutes and seconds, with the decimal hours payroll and billing want.
- Hours CalculatorHours worked between two times, less breaks, in decimal payroll hours — with what the federal rounding rules do to the total.
- Fraction to Decimal CalculatorConverts fractions to decimals and back, to the nearest 16th, 32nd and 64th, with the millimetre equivalent.
- Height ConverterConverts height between centimetres, metres and feet-and-inches in either direction.
- Temperature ConverterConverts between Celsius, Fahrenheit and Kelvin in any direction, with the reference points to sanity-check it.
- Grams to Cups ConverterCups to grams and back for 93 ingredients, and what the same cup weighs depending on how it was filled.
Put this calculator on your site
Free, no attribution required beyond the link.
<iframe src="https://rulecalculators.com/embed/military-time" width="100%" height="420" style="border:1px solid #e7e4de;border-radius:12px" title="Military Time Converter"></iframe>