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

Method getDays

src/main/java/com/nlf/calendar/SolarMonth.java:116–125  ·  view source on GitHub ↗

获取本月的阳历日期列表 @return 阳历日期列表

()

Source from the content-addressed store, hash-verified

114 * @return 阳历日期列表
115 */
116 public List<Solar> getDays() {
117 List<Solar> l = new ArrayList<Solar>(31);
118 Solar d = new Solar(year, month, 1);
119 l.add(d);
120 int days = SolarUtil.getDaysOfMonth(year, month);
121 for (int i = 1; i < days; i++) {
122 l.add(d.next(i));
123 }
124 return l;
125 }
126
127 /**
128 * 获取本月的阳历周列表

Callers 1

testMethod · 0.95

Calls 2

getDaysOfMonthMethod · 0.95
nextMethod · 0.95

Tested by 1

testMethod · 0.76