Rules
- Midnight is 0000; noon is 1200.
- For AM hours keep the number and add a leading zero: 7:15 AM → 0715.
- For PM hours from 1 PM add 12: 3:45 PM → 1545.
- To go back, subtract 12 from hours 13–23 and add PM.
Military time writes the hour from 00 to 23 with no colon: 2:30 PM is 1430 (“fourteen thirty”).