Formula applied
The exact method behind this answer
CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.
If PM and hour is not 12, add 12 to the hour. If AM and hour is 12, use 00. Military time = two-digit 24-hour hour followed by two-digit minutes. Decimal hour = 24-hour hour + minutes ÷ 60. Optional end time adds duration minutes modulo 24 hours.- Apply the formulaIf PM and hour is not 12, add 12 to the hour. If AM and hour is 12, use 00. Military time = two-digit 24-hour hour followed by two-digit minutes. Decimal hour = 24-hour hour + minutes ÷ 60. Optional end time adds duration minutes modulo 24 hours.33 HHMM with 24-hour clock, decimal-hour and optional end-time checksMilitary Time Calculator uses the declared inputs to produce a transparent default result. 12-hour clock hour: 2 1–12; Minutes: 30 min; AM or PM: 1; Optional duration to add: 0 min; primary comparison: 2 and 30.