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 wbl4126
def time_converter(time):
hh, mm = time.split(":")
return f"{int(hh) % 12 + 12 * (int(hh) % 12 == 0)}:{int(mm):02} {'p.m.' if int(hh) // 12 == 1 else 'a.m.'}"
March 6, 2020
Comments: