subtract_years


Description:

public void subtract_years (uint n_years)

Moves a date some number of years into the past.

If the current day doesn't exist in the destination year (i.e. it's February 29 and you move to a non-leap-year) then the day is changed to February 29. The date must be valid.

Parameters:

this

a Date to decrement

n_years

number of years to move