company logo

Date :: addYears - Add years to date value

The function adds a number of years to the date and returns the new date value.

Return value:  Date ( odaba::Date & )

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

Implementation details

odaba::Date & Date  :: addYears ( int32 iYears )

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

  • iYears - Year number

    Number of years or year number.