getPositionTaiSui method

String getPositionTaiSui()

Implementation

String getPositionTaiSui() {
  String p;
  int m = _month.abs();
  switch (m) {
    case 1:
    case 5:
    case 9:
      p = '艮';
      break;
    case 3:
    case 7:
    case 11:
      p = '坤';
      break;
    case 4:
    case 8:
    case 12:
      p = '巽';
      break;
    default:
      p = LunarUtil.POSITION_GAN[Solar.fromJulianDay(this.getFirstJulianDay())
          .getLunar()
          .getMonthGanIndex()];
  }
  return p;
}