previousYear static method

DateTime previousYear(
  1. DateTime d
)

Returns same date in the previous year.

Implementation

static DateTime previousYear(DateTime d) => addYears(d, -1);