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 martin_b
def time_converter(time):
h, m = map(int, time.split(':'))
return f"{(h-1)%12+1}:{m:02d} {'ap'[h>11]}.m."
June 3, 2018
Comments: