LunarMonth constructor

LunarMonth(
  1. int year,
  2. int month,
  3. int dayCount,
  4. double firstJulianDay,
  5. int index,
)

Implementation

LunarMonth(int year, int month, int dayCount, double firstJulianDay, int index) {
  _year = year;
  _month = month;
  _dayCount = dayCount;
  _firstJulianDay = firstJulianDay;
  _index = index;
  _zhiIndex = (index - 1 + LunarUtil.BASE_MONTH_ZHI_INDEX) % 12;
}