getDaysInMonth function

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

Return the number of days in a month. year is the year of the month. month is the month of the year.

Implementation

int getDaysInMonth(int year, int month) {
  return NepaliDateTime(year, month).totalDays;
}