Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Some f-strings solution in Clear category for Date and Time Converter by vnkvstnk
import calendar
def date_time(time: str) -> str:
dt = time.split()
d, m, y = [int(x) for x in dt[0].split(".")]
date = f"{d} {calendar.month_name[m]} {y} year "
h, min = [int(x) for x in dt[1].split(":")]
time = f"{h} hour{'' if h==1 else 's'} {min} minute{'' if min==1 else 's'}"
return date + time
April 28, 2020