1
0
mirror of synced 2025-12-27 15:57:59 +08:00

v1.3.4 LunarMonth增加序号、干支、财神方位等;完善纪念日。

This commit is contained in:
6tail
2023-03-27 21:39:16 +08:00
parent 586a8d3f1e
commit 3ef8d0c657
15 changed files with 301 additions and 40 deletions

View File

@@ -306,9 +306,10 @@ public class Solar {
}
List<Integer> hours = new ArrayList<Integer>(2);
String timeZhi = timeGanZhi.substring(1);
for(int i = 0, j = LunarUtil.ZHI.length; i < j; i++){
for(int i = 1, j = LunarUtil.ZHI.length; i < j; i++){
if(LunarUtil.ZHI[i].equals(timeZhi)){
hours.add((i - 1) * 2);
break;
}
}
if ("".equals(timeZhi)) {