getDayPositionTaiSui method

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

Implementation

String getDayPositionTaiSui([int sect = 2]) {
  String dayInGanZhi;
  int yearZhiIndex;
  switch (sect) {
    case 1:
      dayInGanZhi = getDayInGanZhi();
      yearZhiIndex = _yearZhiIndex;
      break;
    case 3:
      dayInGanZhi = getDayInGanZhi();
      yearZhiIndex = _yearZhiIndexExact;
      break;
    default:
      dayInGanZhi = getDayInGanZhiExact2();
      yearZhiIndex = _yearZhiIndexByLiChun;
  }
  return _getDayPositionTaiSui(dayInGanZhi, yearZhiIndex);
}