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 vashrepetitor05
def time_converter(time):
h, m = [int(i) for i in time.split(':')]
suffix = h >= 12 and ' p.m.' or ' a.m.'
h = 12 if h % 12 == 0 else h % 12
time = str(h)+':'+str(m // 10) + str(m % 10)+suffix
return time
Oct. 28, 2019