getMonthNineStar method

NineStar getMonthNineStar([
  1. int sect = 2
])

Implementation

NineStar getMonthNineStar([int sect = 2]) {
  int yearZhiIndex;
  int monthZhiIndex;
  switch (sect) {
    case 1:
      yearZhiIndex = _yearZhiIndex;
      monthZhiIndex = _monthZhiIndex;
      break;
    case 3:
      yearZhiIndex = _yearZhiIndexExact;
      monthZhiIndex = _monthZhiIndexExact;
      break;
    default:
      yearZhiIndex = _yearZhiIndexByLiChun;
      monthZhiIndex = _monthZhiIndex;
  }
  return _getMonthNineStar(yearZhiIndex, monthZhiIndex);
}