Skip to main content
Basics

AM/PM (Ante Meridiem / Post Meridiem)

am pm

Overview

AM (ante meridiem, Latin for "before noon") and PM (post meridiem, "after noon") are markers used in the 12-hour clock to divide the day into two halves. The hours 1:00 AM through 11:59 AM cover the morning, while 1:00 PM through 11:59 PM cover the afternoon and evening. This convention is the everyday standard in the United States, Canada, Australia, and the Philippines.

The 12:00 Ambiguity

The designations 12:00 AM and 12:00 PM are logically inconsistent. By convention 12:00 PM means noon and 12:00 AM means midnight, yet calling noon "post meridiem" (after noon) contradicts the literal meaning. To avoid confusion, the aviation industry writes "12:00 noon" and "12:00 midnight" explicitly, and U.S. legal documents follow a similar practice.

Handling in Software

When accepting user input in 12-hour format, special care is needed around the 12 o'clock hour. 12:30 AM converts to 0:30 in 24-hour time, while 12:30 PM stays 12:30. Input validation must reject illegal values such as 12:60 PM or 13:00 PM. The safest design pattern is to store all times internally in 24-hour format (0 through 23) and convert to AM/PM only at the display layer.

XB!LINE

Was this article helpful?

Related Terms

Related Articles