Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Time Converter (24h to 12h) by sdadenkovs
def time_converter(time):
hour = int(time[:2])
return str(12 if hour%12 == 0 else hour%12) + time[2:5] + (' p.m.' if hour >= 12 else ' a.m.')
Oct. 27, 2019