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

Method toFullString

src/main/java/com/nlf/calendar/Solar.java:588–612  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

586 }
587
588 public String toFullString() {
589 StringBuilder s = new StringBuilder();
590 s.append(toYmdHms());
591 if (isLeapYear()) {
592 s.append(" ");
593 s.append("闰年");
594 }
595 s.append(" ");
596 s.append("星期");
597 s.append(getWeekInChinese());
598 for (String f : getFestivals()) {
599 s.append(" (");
600 s.append(f);
601 s.append(")");
602 }
603 for (String f : getOtherFestivals()) {
604 s.append(" (");
605 s.append(f);
606 s.append(")");
607 }
608 s.append(" ");
609 s.append(getXingZuo());
610 s.append("座");
611 return s.toString();
612 }
613
614 /**
615 * 阳历日期相减,获得相差天数

Callers 2

testMethod · 0.95
testMethod · 0.95

Calls 7

toYmdHmsMethod · 0.95
isLeapYearMethod · 0.95
getWeekInChineseMethod · 0.95
getFestivalsMethod · 0.95
getOtherFestivalsMethod · 0.95
getXingZuoMethod · 0.95
toStringMethod · 0.45

Tested by 2

testMethod · 0.76
testMethod · 0.76