company logo

Date :: subtractYears - Subtract years from date value

The number of years passed in iYears is subtracted from the date value. Month and day remain unchanged, except for February 29th, which might be adjusted to February 28th.

Return value:  Date ( odaba::Date & )

The date contains day, month and year, but not the time.

Implementation details

odaba::Date & Date  :: subtractYears ( int32 iYears )
  • iYears - Years

    Time span in years.