def format_time(t):
    if abs((datetime.now() - t).days) < 365:
        return t.strftime('%b %d %H:%M')
    else:
        return t.strftime('%b %d  %Y')
Format datetime suitable for fixed length list output
dataset/ETHPy150Open jborg/attic/attic/helpers.py/format_time