Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
str(p & f)time solution in Clear category for Date and Time Converter by flpo
from datetime import datetime
def checkio(time):
dt = datetime.strptime(time, '%d.%m.%Y %H:%M')
hour = 'hour' if dt.hour == 1 else 'hours'
minute = 'minute' if dt.minute == 1 else 'minutes'
return dt.strftime(f'%-d %B %Y year %-H {hour} %-M {minute}')
March 1, 2018
Comments: