Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple isn't ? solution in Clear category for Time Converter (12h to 24h) by rybld2
def time_converter(time):
h, m = map(int, time[:-5].split(':'))
h = h % 12
if 'p' in time: h += 12
return f'{h :02}:{m:02}'
Oct. 21, 2021
Comments: