toYears static method

num toYears(
  1. num date
)

Implementation

static num toYears(num date) {
  return toMonths(date) / 365;
}