subtractYears method

DateTime subtractYears(
  1. int years
)

subtractYears(): Subtracts a specified number of years from a DateTime.

Implementation

DateTime subtractYears(int years) {
  return DateTime(year - years, month, day, hour, minute, second, millisecond,
      microsecond);
}