Class LunarDay
java.lang.Object
org.miaixz.bus.core.center.date.culture.Tradition
org.miaixz.bus.core.center.date.culture.Loops
org.miaixz.bus.core.center.date.culture.lunar.LunarDay
农历日
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LunarDayfromYmd(int year, int month, int day) 从农历年月日初始化忌intgetDay()日getDuty()建除十二值神农历传统节日,如果当天不是农历传统节日,返回null逐日胎神getGods()神煞列表(吉神宜趋,凶神宜忌)getHours()当天的时辰列表太岁方位农历月intgetMonth()月当天的月干支(节气换)getName()名称九星getPhase()月相宜六曜干支公历日黄道黑道十二神二十八宿getWeek()星期intgetYear()年当天的年干支(立春换)boolean是否在指定农历日之后boolean是否在指定农历日之前next(int n) 推移toString()
-
Field Details
-
NAMES
-
month
农历月 -
day
protected int day日
-
-
Constructor Details
-
LunarDay
public LunarDay(int year, int month, int day) 初始化- Parameters:
year- 农历年month- 农历月,闰月为负day- 农历日
-
-
Method Details
-
fromYmd
从农历年月日初始化- Parameters:
year- 农历年month- 农历月,闰月为负day- 农历日
-
getLunarMonth
农历月- Returns:
- 农历月
-
getYear
public int getYear()年- Returns:
- 年
-
getMonth
public int getMonth()月- Returns:
- 月
-
getDay
public int getDay()日- Returns:
- 日
-
getName
Description copied from interface:Almanac名称- Returns:
- 名称
-
toString
-
next
Description copied from interface:Culture推移- Parameters:
n- 推移步数- Returns:
- this
-
isBefore
是否在指定农历日之前- Parameters:
target- 农历日- Returns:
- true/false
-
isAfter
是否在指定农历日之后- Parameters:
target- 农历日- Returns:
- true/false
-
getWeek
星期- Returns:
- 星期
-
getYearSixtyCycle
当天的年干支(立春换)- Returns:
- 干支
-
getMonthSixtyCycle
当天的月干支(节气换)- Returns:
- 干支
-
getSixtyCycle
干支- Returns:
- 干支
-
getDuty
建除十二值神- Returns:
- 建除十二值神
-
getTwelveStar
黄道黑道十二神- Returns:
- 黄道黑道十二神
-
getNineStar
九星- Returns:
- 九星
-
getJupiterDirection
太岁方位- Returns:
- 方位
-
getFetusDay
逐日胎神- Returns:
- 逐日胎神
-
getPhase
月相- Returns:
- 月相
-
getSixStar
六曜- Returns:
- 六曜
-
getSolarDay
公历日- Returns:
- 公历日
-
getTwentyEightStar
二十八宿- Returns:
- 二十八宿
-
getFestival
农历传统节日,如果当天不是农历传统节日,返回null- Returns:
- 农历传统节日
-
getHours
当天的时辰列表- Returns:
- 时辰列表
-
getGods
神煞列表(吉神宜趋,凶神宜忌)- Returns:
- 神煞列表
-
getRecommends
宜- Returns:
- 宜忌列表
-
getAvoids
忌- Returns:
- 宜忌列表
-
equals
-