增加阳历和农历的其他非正式的节日或纪念日;增加农历干支纪月和纪日;增加农历彭祖百忌。
This commit is contained in:
@@ -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("座");
|
||||
|
||||
Reference in New Issue
Block a user