Military Time Converter
Military time is a format converter, not a numeric unit-factor converter. It does not multiply hours by 60 or divide seconds by 3,600. Instead, it translates between two ways of writing a time of day: the 12-hour AM/PM clock and a four-digit 24-hour notation.
The form works in both directions at the same time. The standard-time fields convert an hour, minute, and AM/PM choice into a four-digit value. The military time field decodes a value from 0000 through 2359 back into standard time. For elapsed durations, use the hour converter, minute converter, or seconds converter instead. Those pages convert quantities of time; this page converts clock notation.
12-hour and 24-hour systems
The 12-hour clock divides the day into AM and PM cycles. A time without AM or PM does not provide enough information for this conversion.
The 24-hour clock counts the day once, from 00:00 at midnight to 23:59 just before the next midnight. Written military time usually removes the colon and keeps four digits, so 00:00 becomes 0000, 07:05 becomes 0705, 14:30 becomes 1430, and 23:59 stays 2359.
Rules used by the calculator
For standard time to military time, the calculation first converts the 12-hour input to a 24-hour hour:
Then it pads the hour and minute to two digits and joins them:
For military time back to standard time, the first two digits must be between 00 and 23, and the last two digits must be between 00 and 59. Hour 00 becomes 12 AM. Hours 01 through 11 stay AM. Hour 12 is 12 PM. Hours 13 through 23 subtract 12 and use PM.
Example
The default standard input is 2:30 PM. Because it is PM and the hour is not 12, the calculator adds 12:
The minutes stay 30, so the primary result is 1430. The item rows show the standard input as 2:30 PM, a grouped-digit reading, the military input converted to standard time, and the military input with a colon. With the default military input of 1430, the reverse result is 2:30 PM, and the colon display is 14:30. This exactly matches the calculation’s two-way behavior.
Display note: the read-as row prints grouped digits such as “14 30 hours” rather than spelling “fourteen thirty hours.” The arithmetic and format conversion are still the rules above; the spoken wording is a display wording issue in the form component.
Reference table
| Standard time | Military time | 24-hour with colon | Rule |
|---|---|---|---|
| 12:00 AM | 0000 | 00:00 | midnight becomes 00 |
| 12:15 AM | 0015 | 00:15 | keep minutes, hour 12 AM becomes 00 |
| 5:45 AM | 0545 | 05:45 | AM hour keeps value with leading zero |
| 11:59 AM | 1159 | 11:59 | late morning stays AM |
| 12:00 PM | 1200 | 12:00 | noon stays 12 |
| 2:30 PM | 1430 | 14:30 | add 12 to PM hour |
| 11:59 PM | 2359 | 23:59 | last minute before next day |
Noon, midnight, and leading zeros
Noon and midnight cause the most errors. Noon is 12:00 PM, so it is 1200. Do not add 12 to noon; 2400 is not the calculator’s noon value. Midnight at the start of a day is 12:00 AM, so it is 0000. The form accepts 0000 through 2359 and rejects values whose minute part is 60 or greater, such as 1260.
Leading zeros are part of the format. A schedule that says 705 may still be read as 0705 by a person, but the formal four-digit value is 0705. The form pads single-digit hours and minutes so 7:05 AM becomes 0705 and 12:05 AM becomes 0005.
Time-of-day limitation
A value such as 1430 is a time-of-day notation, not a duration of 1,430 minutes or a decimal number of hours. Calculating elapsed time requires dates or an explicit rule for crossing midnight; this converter does not infer either.
Accuracy and limits
The calculator keeps the defined or cited relationship through the calculation and rounds only the displayed result. A converted number does not become more precise than the source measurement. Keep additional digits for chained calculations, then round to the precision justified by the original value; also preserve any reference basis or notation convention named with the input.
Sources
-
U.S. Government Publishing Office, GPO Style Manual, chapter 12 — time expressed in four-digit figures.
-
BIPM, The International System of Units (SI Brochure) — SI base/derived units, prefixes, coherent dimensional relations, exact defining constants, day and degree accepted with SI.
-
NIST, Guide for the Use of the International System of Units (SI) — US customary/SI conversion factors and precision/significant-digit guidance.