Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner strftime the saver solution in Creative category for Date and Time Converter by Stensen
def date_time(t):
d,m,y,h,f=map(int,__import__('re').split('[ .:]', t))
return __import__('datetime').datetime(y,m,d,h,f).strftime(f"%-d %B %Y year %-H {'hours' if h!=1 else 'hour'} %-M {'minutes' if f!=1 else 'minute'}")
Sept. 21, 2020
Comments: