subtractYears method
Implementation
DateTime subtractYears(int years) {
int newYear = year - years;
int newMonth = month;
int newDay = day;
while (newDay > daysInMonth(newYear, newMonth)) {
newDay--;
}
return DateTime(newYear, newMonth, newDay, hour, minute, second,
millisecond, microsecond);
}