MCPcopy Create free account
hub / github.com/6tail/lunar-java / getHou

Method getHou

src/main/java/com/nlf/calendar/Lunar.java:2997–3005  ·  view source on GitHub ↗

获取候 @return 候

()

Source from the content-addressed store, hash-verified

2995 * @return
2996 */
2997 public String getHou() {
2998 JieQi jieQi = getPrevJieQi(true);
2999 int max = LunarUtil.HOU.length - 1;
3000 int offset = solar.subtract(jieQi.getSolar()) / 5;
3001 if (offset > max) {
3002 offset = max;
3003 }
3004 return String.format("%s %s", jieQi.getName(), LunarUtil.HOU[offset]);
3005 }
3006
3007 /**
3008 * 获取日禄

Callers 4

test10Method · 0.95
test11Method · 0.95
test12Method · 0.95
test13Method · 0.95

Calls 4

getPrevJieQiMethod · 0.95
getSolarMethod · 0.95
getNameMethod · 0.95
subtractMethod · 0.80

Tested by 4

test10Method · 0.76
test11Method · 0.76
test12Method · 0.76
test13Method · 0.76