In a digital clock, AM is used to tell the time from midnight to midday. PM is used to tell the time from to midnight.