Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
7-liner: datetime sometime solution in Clear category for Date and Time Converter by przemyslaw.daniel
def date_time(string):
import datetime
date, time = string.split()
day, month, year = map(int, date.split('.'))
hour, minute = map(int, time.split(':'))
month = datetime.date(1900, month, 1).strftime('%B')
return f'{day} {month} {year} year {hour} hour{"s"[:hour!=1]} {minute} minute{"s"[:minute!=1]}'
Sept. 11, 2018
Comments: