The 12-hour clock is a time convention in which the 24 hours of the day are divided into two periods: a.m. (from Latin ante meridiem, translating to "before midday") and p.m. (from Latin post meridiem, translating to "after midday"). Each period consists of 12 hours numbered: 12 (acting as 0), 1, 2,...
https://en.wikipedia.org/wiki/12-hour_clock#Confusion_at_noon_and_midnight