toMonths static method

num toMonths(
  1. num date
)

Implementation

static num toMonths(num date) {
  return toDays(date) / 30;
}