getWuHou method

String getWuHou()

Implementation

String getWuHou() {
  JieQi jieQi = getPrevJieQi(true);
  IndexValue? jq = LunarUtil.find(jieQi.getName(), LunarUtil.JIE_QI);
  int offset = 0;
  if (null != jq) {
    offset = jq.getIndex();
  }
  int index = (_solar!.subtract(jieQi.getSolar()) / 5).floor();
  if (index > 2) {
    index = 2;
  }
  return LunarUtil.WU_HOU[(offset * 3 + index) % LunarUtil.WU_HOU.length];
}