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

Method getMonthNineStar

src/main/java/com/nlf/calendar/Lunar.java:2098–2106  ·  view source on GitHub ↗
(int yearZhiIndex, int monthZhiIndex)

Source from the content-addressed store, hash-verified

2096 }
2097
2098 protected NineStar getMonthNineStar(int yearZhiIndex, int monthZhiIndex) {
2099 int index = yearZhiIndex % 3;
2100 int n = 27 - index * 3;
2101 if (monthZhiIndex < LunarUtil.BASE_MONTH_ZHI_INDEX) {
2102 n -= 3;
2103 }
2104 int offset = (n - monthZhiIndex) % 9;
2105 return NineStar.fromIndex(offset);
2106 }
2107
2108 /**
2109 * 获取值月九星(流派2新的一月以节交接当天零点起算。月紫白星歌诀:子午卯酉八白起,寅申巳亥二黑求,辰戌丑未五黄中。)

Callers

nothing calls this directly

Calls 1

fromIndexMethod · 0.95

Tested by

no test coverage detected