Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
ooooh solution in Clear category for Date and Time Converter by katnic
M =["$","January","Febuary","March","April","May","June","July","August","September","October","November","December"]
def date_time(T: str) -> str:
m = 'minute'
h = 'hour'
day = str( int ( T[0:2] ))
month = M [int ( T[3:5] )]
year = str( int ( T[6:10] ))
hours = str( int ( T[11:13] ))
minutes = str( int ( T[14:16] ))
if int(minutes) != 1: m += 's'
if int(hours) != 1: h += 's'
result = '{0} {1} {2} year {3} {4} {5} {6}'
return result.format(day, month, year, hours, h, minutes, m)
Aug. 14, 2021