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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
getYear
public int getYear()年- Returns:
- 年
-
getMonth
public int getMonth()月- Returns:
- 月
-
getDay
public int getDay()日- Returns:
- 日
-
getName
-
toString
-
next
-
isBefore
-
isAfter
-
getWeek
-
getYearSixtyCycle
-
getMonthSixtyCycle
-
getSixtyCycle
-
getDuty
-
getTwelveStar
-
getNineStar
-
getJupiterDirection
-
getFetusDay
-
getPhase
-
getSixStar
-
getSolarDay
-
getTwentyEightStar
-
getFestival
-
getHours
-
getGods
-
getRecommends
-
getAvoids
-