Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Time Converter (12h to 24h) by vnkvstnk
def time_converter(time):
h, m = [int(x) for x in time[:-5].split(":")]
h_24 = (h + 12) % 12 if time.endswith("a.m.") else 12 + h % 12
return f"{h_24:02d}:{m:02d}"
April 14, 2020