Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
No zero solution in Clear category for Time Converter (24h to 12h) by beskrovnykh
from datetime import datetime
def time_converter(time):
dt = datetime.strptime(time, "%H:%M")
return f"{dt:%-I}:{dt:%M} {dt:%p}".replace("PM", "p.m.").replace("AM", "a.m.")
Aug. 18, 2019
Comments: