half past two in the afternoon
- Hour
- 14
- Minute
- 30
- That hour is
- 24-hour
- If 12-hour, is it
- PM
24-hour time14:30
arithmetic identity
Open this exampleConvert between 12-hour and 24-hour time. Midnight and noon are the cases that trip people: 12 AM is 00:00 and 12 PM is 12:00, which feels backwards.
Also called: 24 hour clock converter, am pm converter.
14:30 in 24-hour time is 2:30 PM in 12-hour time. Neither midnight nor noon, so the conversion is unambiguous.
Converting to 24-hour takes the hour modulo twelve and adds twelve for PM. The awkwardness is entirely at the two twelves: 12 AM is the start of the day at 00:00, and 12 PM is midday at 12:00, so the AM one is earlier despite the larger number. Many style guides recommend writing noon and midnight in words for exactly this reason.
twelve becomes zero before adding twelve for PM, which is why noon and midnight are the awkward casesEach of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
24-hour time14:30
arithmetic identity
Open this example24-hour time00:00
boundary: the case everyone gets wrong
Open this example24-hour time12:00
boundary
Open this exampleFormula version 1.0.0 · definition 1.0.0 · United States · Report a problem with this calculator