getDaysInMonth method

  1. @override
int getDaysInMonth(
  1. int year,
  2. int month
)
override

Returns the number of days in a month, according to the proleptic Gregorian calendar.

This applies the leap year logic introduced by the Gregorian reforms of 1582. It will not give valid results for dates prior to that time.

Implementation

@override
int getDaysInMonth(int year, int month) => DateUtils.getDaysInMonth(year, month);