addYears method

EllaDate addYears(
  1. int value
)

Add years.

  • @param value is signed int, can be negative to subtract years

Implementation

EllaDate addYears(int value)
{
  DateTime dateTime = new DateTime(year + value, month, day);
  return new EllaDate.fromDateTime(dateTime);
}