Mistři v programování na #hovnokod

Python #494

add 1 year to date

def plus_year(date):
    """
    add 1 year to date
    """
    try:
        return date.replace(year=date.year+1)
    except ValueError:  # Feb 29
        return date.replace(month=2, day=28, year=date.year+1)

HovnoKod,