Change a clock time between AM/PM notation and the 00:00–23:59 system.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
For AM/PM input, 12 is reduced modulo 12 and another 12 hours are added only for PM. In the opposite direction, hour zero becomes 12 AM, hours above 12 subtract 12 and receive PM, and minutes and supplied seconds are retained.
2:30 PM
24h: 14:30 12h: 2:30 PM
Transport timetables change 18:45 to an AM/PM display, calendar imports normalize 7:05 PM to 19:05, and shift rotas disambiguate noon and midnight.