Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Datetime solution in Clear category for Time Converter (24h to 12h) by Adrian_Sanz_Wallace
from datetime import datetime
def time_converter(time):
time = datetime.strptime(time, '%H:%M')
return time.strftime('%-I:%M %P').replace('m', '.m.')
print("Coding complete? Click 'Check' to earn cool rewards!")
June 22, 2021