1
0
mirror of synced 2025-12-28 00:08:00 +08:00

增加阳历和农历的其他非正式的节日或纪念日;增加农历干支纪月和纪日;增加农历彭祖百忌。

This commit is contained in:
6tail
2020-04-04 21:54:01 +08:00
parent 6db884b981
commit f053d84a97
9 changed files with 317 additions and 41 deletions

View File

@@ -156,6 +156,20 @@ public class Solar{
return l;
}
/**
* 获取非正式的节日,有可能一天会有多个节日
*
* @return 非正式的节日列表,如中元节
*/
public List<String> getOtherFestivals(){
List<String> l = new ArrayList<String>();
List<String> fs = SolarUtil.OTHER_FESTIVAL.get(month+"-"+day);
if(null!=fs){
l.addAll(fs);
}
return l;
}
/**
* 获取星座
*
@@ -254,6 +268,11 @@ public class Solar{
s.append(f);
s.append(")");
}
for(String f:getOtherFestivals()){
s.append(" (");
s.append(f);
s.append(")");
}
s.append(" ");
s.append(getXingzuo());
s.append("");