public class LunarDay extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
day
日
|
protected LunarMonth |
month
农历月
|
static String[] |
NAMES |
| 限定符 | 构造器和说明 |
|---|---|
protected |
LunarDay(int year,
int month,
int day)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static LunarDay |
fromYmd(int year,
int month,
int day)
从农历年月日初始化
|
int |
getDay()
日
|
Duty |
getDuty()
建除十二值神
|
LunarFestival |
getFestival()
农历传统节日,如果当天不是农历传统节日,返回null
|
FetusDay |
getFetusDay()
逐日胎神
|
Direction |
getJupiterDirection()
太岁方位
|
LunarMonth |
getMonth()
农历月
|
SixtyCycle |
getMonthSixtyCycle()
当天的月干支
|
String |
getName()
名称
|
NineStar |
getNineStar()
九星
|
Phase |
getPhase()
月相
|
SixtyCycle |
getSixtyCycle()
干支
|
SolarDay |
getSolarDay()
公历日
|
TwelveStar |
getTwelveStar()
黄道黑道十二神
|
TwentyEightStar |
getTwentyEightStar()
二十八宿
|
Week |
getWeek()
星期
|
SixtyCycle |
getYearSixtyCycle()
当天的年干支
|
boolean |
isAfter(LunarDay target)
是否在指定农历日之后
|
boolean |
isBefore(LunarDay target)
是否在指定农历日之前
|
LunarDay |
next(int n)
推移
|
String |
toString() |
indexOfpublic static final String[] NAMES
protected LunarMonth month
protected int day
protected LunarDay(int year,
int month,
int day)
year - 农历年month - 农历月,闰月为负day - 农历日public static LunarDay fromYmd(int year, int month, int day)
year - 农历年month - 农历月,闰月为负day - 农历日public LunarMonth getMonth()
public int getDay()
public String toString()
toString 在类中 AbstractCulturepublic boolean isBefore(LunarDay target)
target - 农历日public boolean isAfter(LunarDay target)
target - 农历日public Week getWeek()
public SixtyCycle getYearSixtyCycle()
public SixtyCycle getMonthSixtyCycle()
public SixtyCycle getSixtyCycle()
public Duty getDuty()
public TwelveStar getTwelveStar()
public NineStar getNineStar()
public Direction getJupiterDirection()
public FetusDay getFetusDay()
public Phase getPhase()
public SolarDay getSolarDay()
public TwentyEightStar getTwentyEightStar()
public LunarFestival getFestival()
public boolean equals(Object o)
equals 在类中 AbstractCultureCopyright © 2024. All Rights Reserved.