Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
F-bomb solution in Clear category for Date and Time Converter by ssk8
from datetime import datetime
def date_time(time: str) -> str:
dt = datetime.strptime(time, '%d.%m.%Y %H:%M')
return dt.strftime(f'%-d %B %Y year %-H hour{(dt.hour != 1)*"s"} %-M minute{(dt.minute != 1)*"s"}')
June 29, 2018
Comments: