Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
f-string format solution in Creative category for Time Converter (12h to 24h) by dunaldo
def time_converter(time):
h, m = map(int, time[:-5].split(':'))
return f'{h % 12 + 12 * ("p" in time):02d}:{m:02d}'
Nov. 26, 2018