Write time using a.m. or p.m.