am pm definition code example Example: pm and am AM = Ante meridiem: Before noon · PM = Post meridiem: After noon.