Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Compacted solution in Speedy category for Time Converter (24h to 12h) by jiizzyy
def time_converter(time):
h = int(time[:2])
return f'{(abs(h-12), h)[0 < h < 13]}{time[2:]} {("p", "a")[h < 12]}.m.'
Feb. 4, 2020
Comments: