Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
one-liner using str.format solution in Speedy category for Time Converter (24h to 12h) by PythonWithPI
time_converter=lambda time:["{}:{:02d} {}.m.".format((hour-1)%12+1,minute,('p' if hour>11 else 'a')) for hour,minute in [map(int,time.split(':'))]][0]
Feb. 17, 2019
Comments: