getYearPositionTaiSui method

String getYearPositionTaiSui([
  1. int sect = 2
])

Implementation

String getYearPositionTaiSui([int sect = 2]) {
  int yearZhiIndex;
  switch (sect) {
    case 1:
      yearZhiIndex = _yearZhiIndex;
      break;
    case 3:
      yearZhiIndex = _yearZhiIndexExact;
      break;
    default:
      yearZhiIndex = _yearZhiIndexByLiChun;
  }
  return LunarUtil.POSITION_TAI_SUI_YEAR[yearZhiIndex];
}