Returns the new date based on the inputted number of years.
    
    :param      date  | <datetime.date>
                years | <int>
    
    :return     <datetime.date>

def addYears(date, years):
    """
    Returns the new date based on the inputted number of years.
    
    :param      date  | <datetime.date>
                years | <int>
    
    :return     <datetime.date>
    """
    # map from Qt information
    if type(date).__name__ in ('QDate', 'QDateTime', 'QTime'):
        date = date.toPython()

    return datetime.date(date.year + years, date.month, date.day)