Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
regex solution in Clear category for Date and Time Converter by kdim
from datetime import datetime
from re import sub
def date_time(time: str) -> str:
date = datetime.strptime(time, "%d.%m.%Y %H:%M")
date = date.strftime("%d %B %Y year %H hours %M minutes")
return sub(r'^()0|( )0|(1 hour|1 minute)s', r'\1\2\3', date)
Sept. 26, 2022
Comments: