Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Date and Time Converter by Pouf
import datetime
def date_time(time: str) -> str:
datetime_obj = datetime.datetime.strptime(time, "%d.%m.%Y %H:%M")
hours, minutes = datetime_obj.hour, datetime_obj.minute
hours_str = str(hours) + " hour" + ("" if hours == 1 else "s")
minutes_str = str(minutes) + " minute" + ("" if minutes == 1 else "s")
prety_date = f"{datetime_obj.day} {datetime_obj:%B %Y year} {hours_str} {minutes_str}"
return prety_date
June 28, 2020