Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
← Prev solution in Clear category for Date and Time Converter by StefanPochmann
from datetime import datetime
def date_time(time):
t = datetime.strptime(time, '%d.%m.%Y %H:%M')
date = f"{t.day} {t.strftime('%B %Y year')}"
hour = f"{t.hour} hour{'s'[:t.hour != 1]}"
minute = f"{t.minute} minute{'s' * (t.minute != 1)}"
return f"{date} {hour} {minute}"
March 26, 2018