this confusion about a.m./p.m. was one reason the military adopted a 24-hour "clock."

Still possiblities for confusion.

There was no such time as midnight in the Navy. No one could figure out if it was 0000 or 2400 and whether it was yesterday or tomorrow. Things would be logged as happening at 2359 or 0001, but never any time between those times.