@staticmethod<EOL><INDENT>def add_years(d, years_int):<DEDENT>
y, m, d = BaseDate.to_ymd(d)<EOL>if not is_leap_year(years_int) and m == <NUM_LIT:2>:<EOL><INDENT>d = min(<NUM_LIT>, d)<EOL><DEDENT>return BaseDateFloat.from_ymd(y + years_int, m, d)<EOL>
adds number of years to a date
:param BaseDateFloat d: date to add years to
:param int years_int: number of years to add
:return BaseDate: resulting date