Military time API
One GET request. Send a time in any format, get back military time, 12-hour time, how to say it, and the radio phonetics. Free, no key, CORS enabled.
GET https://militarytime.com/api/v1/convert?time=1730&zone=ZParameters
| Name | Required | Accepts |
|---|---|---|
| time | Yes | 1730, 17:30, 5:30 PM, 5pm, noon, midnight, 2400 |
| zone | No (default Z) | Letter A–Z or name: zulu, romeo, alfa |
Response
{
"input": "1730",
"valid": true,
"minuteOfDay": 1050,
"time24": "1730",
"time12": "5:30 PM",
"spoken": "seventeen thirty hours",
"radio": "One Seven Three Zero Zulu",
"radioIcao": "WUN SEV-EN TREE ZE-RO ZOO-LOO",
"zone": {
"letter": "Z",
"name": "Zulu",
"offset": 0,
"label": "UTC+0"
},
"utcOffsetISO": "Z"
}Invalid input returns HTTP 400 with { "error": "..." } explaining what to fix. Successful responses are cached for a day.