Class SolarDay
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.solar.SolarDay
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SolarDayfromYmd(int year, int month, int day) 七十二候星座intgetDay()日三伏天公历现代节日,如果当天不是公历现代节日,返回null法定假日,如果当天不是法定假日,返回nullint位于当年的索引儒略日农历日intgetMonth()月getName()名称数九天梅雨天(芒种后的第1个丙日入梅,小暑后的第1个未日出梅)公历月getSolarWeek(int start) 公历周getTerm()节气节气第几天getWeek()星期intgetYear()年boolean是否在指定公历日之后boolean是否在指定公历日之前next(int n) 推移int公历日期相减,获得相差天数toString()
-
Field Details
-
NAMES
-
month
公历月 -
day
protected int day日
-
-
Constructor Details
-
SolarDay
public SolarDay(int year, int month, int day) 初始化- Parameters:
year- 年month- 月day- 日
-
-
Method Details
-
fromYmd
-
getSolarMonth
-
getYear
public int getYear()年- Returns:
- 年
-
getMonth
public int getMonth()月- Returns:
- 月
-
getDay
public int getDay()日- Returns:
- 日
-
getWeek
-
getConstellation
-
getName
-
toString
-
next
-
isBefore
-
isAfter
-
getTerm
-
getTermDay
-
getSolarWeek
公历周- Parameters:
start- 起始星期,1234560分别代表星期一至星期天- Returns:
- 公历周
-
getClimateDay
-
getDogDay
-
getNineDay
-
getPlumRainDay
-
getIndexInYear
public int getIndexInYear()位于当年的索引- Returns:
- 索引
-
subtract
-
getJulianDay
-
getLunarDay
-
getHoliday
-
getFestival
-