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 mlahor
def time_converter(time):
hour=int(time[0:2])
if hour>=12:
time+=" p.m."
else:
time+=" a.m."
hour%=12
if not hour:
hour=12
time=str(hour)+time[2:]
return time
Sept. 30, 2019