getHou method

String getHou()

Implementation

String getHou() {
  JieQi jieQi = getPrevJieQi(true);
  String name = jieQi.getName();
  int max = LunarUtil.HOU.length - 1;
  int offset = (_solar!.subtract(jieQi.getSolar()) / 5).floor();
  if (offset > max) {
    offset = max;
  }
  String hou = LunarUtil.HOU[offset];
  return '$name $hou';
}