getYearNineStar method

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

Implementation

NineStar getYearNineStar([int sect = 2]) {
  String yearInGanZhi;
  switch (sect) {
    case 1:
      yearInGanZhi = this.getYearInGanZhi();
      break;
    case 3:
      yearInGanZhi = this.getYearInGanZhiExact();
      break;
    default:
      yearInGanZhi = this.getYearInGanZhiByLiChun();
  }
  return _getYearNineStar(yearInGanZhi);
}