Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Time.strf&strp solution in Clear category for Date and Time Converter by PHANTOM0308
from time import strptime, strftime
def date_time(time: str) -> str:
d = strptime(time, '%d.%m.%Y %H:%M')
f1 = lambda: '' if d[3] == 1 else 's'
f2 = lambda: '' if d[4] == 1 else 's'
date = strftime(f'%-d %B %Y year %-H hour{f1()} %-M minute{f2()}', d)
return date
May 15, 2020