24小时制转12小时制

将24小时制时间转换为附带上午/下午标识的12小时制时间。

24-hour → 12-hour

Accepts 14:30, 09:05 and 13:07:45. Hours run 00–23.

Common conversions

24-hour12-hourMilitary
00:0012:00 AM (midnight)0000
01:001:00 AM0100
06:306:30 AM0630
11:5911:59 AM1159
12:0012:00 PM (noon)1200
14:302:30 PM1430
18:006:00 PM1800
23:5911:59 PM2359

计算原理

  1. The 24-hour clock runs 00:00–23:59 once per day; the 12-hour clock repeats 1–12 with AM and PM. Converting is an hour remap; minutes and seconds pass through unchanged.
  2. Hour 00 becomes 12:00 AM (midnight) and hour 12 becomes 12:00 PM (noon). These two cases cause most conversion mistakes and are handled explicitly here.
  3. Times outside 00:00–23:59 (such as 24:30, which is a duration rather than a time of day) are rejected with an explanation instead of rolled over silently.

使用提示

  • Optional seconds are preserved: 13:07:45 converts to 1:07:45 PM.
  • The military (four-digit) form is shown alongside: 14:30 is 2:30 PM and 1430.
  • This tool converts format only. For zone-aware instants, use the time zone converter.

常见问题解答

What is 00:00 in 12-hour time?
12:00 AM. Hour zero maps to midnight, written 12 AM on the 12-hour clock. 12:00 (noon) is 12:00 PM.
Why does 24:30 fail to parse?
The 24-hour clock runs 00:00–23:59. 24:30 is not a valid time of day (it is a duration expression). The tool rejects it clearly rather than rolling it over into the next day silently.
Does the converter keep seconds?
Yes, optional seconds are preserved exactly; for example, 13:07:45 converts to 1:07:45 PM.