Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
( ͡° ͜ʖ ͡°) solution in Clear category for Time Converter (24h to 12h) by Ordik
def time_converter(time):
h, m = map(int, time.split(':'))
return f"{h % 12 + 12 * (h % 12 == 0)}:{m:02d} {['a', 'p'][h >= 12]}.m."
Nov. 19, 2020
Comments: