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

增加获取完整地支十神的方法。

This commit is contained in:
6tail
2020-07-27 23:28:31 +08:00
parent ecb1fc5fb8
commit 301ed50ded
2 changed files with 67 additions and 0 deletions

View File

@@ -103,4 +103,24 @@ public class BaZiTest {
}
}
@Test
public void testBaziShiShenZhi() {
Solar solar = new Solar(2020,1,1,22,35,0);
Lunar lunar = solar.getLunar();
//[己亥, 丙子, 癸卯, 癸亥]
System.out.println(lunar.getBaZi());
//[七杀, 正财, 日主, 比肩]
System.out.println(lunar.getBaZiShiShenGan());
//[劫财, 比肩, 食神, 劫财]
System.out.println(lunar.getBaZiShiShenZhi());
//[劫财, 伤官]
System.out.println(lunar.getBaZiShiShenYearZhi());
//[比肩]
System.out.println(lunar.getBaZiShiShenMonthZhi());
//[食神]
System.out.println(lunar.getBaZiShiShenDayZhi());
//[劫财, 伤官]
System.out.println(lunar.getBaZiShiShenTimeZhi());
}
}