Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Datetime solution solution in Clear category for Time Converter (12h to 24h) by MBM_1607
from datetime import datetime
def time_converter(time):
time, median = time.split()
median = median.replace('.', '').upper()
return datetime.strptime(time+median, '%I:%M%p').strftime('%H:%M')
Aug. 29, 2019
Comments: