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

Method getMonth

src/main/java/com/nlf/calendar/LunarYear.java:316–323  ·  view source on GitHub ↗

获取农历月 @param lunarMonth 月,1-12,闰月为负数,如闰2月为-2 @return 农历月

(int lunarMonth)

Source from the content-addressed store, hash-verified

314 * @return 农历月
315 */
316 public LunarMonth getMonth(int lunarMonth) {
317 for (LunarMonth m : months) {
318 if (m.getYear() == year && m.getMonth() == lunarMonth) {
319 return m;
320 }
321 }
322 return null;
323 }
324
325 /**
326 * 获取闰月

Callers 4

LunarMethod · 0.95
getZaoByGanMethod · 0.95
getZaoByZhiMethod · 0.95
getLeapMonthMethod · 0.45

Calls 1

getYearMethod · 0.45

Tested by

no test coverage detected