public class LunarYear extends AbstractTyme
| 限定符 | 构造器和说明 |
|---|---|
protected |
LunarYear(int year) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static LunarYear |
fromYear(int year)
从年初始化
|
int |
getDayCount()
天数
|
Direction |
getJupiterDirection()
太岁方位
|
int |
getLeapMonth()
闰月
|
List<LunarMonth> |
getMonths()
月份列表
|
String |
getName()
依据国家标准《农历的编算和颁行》GB/T 33661-2017,农历年有2种命名方法:干支纪年法和生肖纪年法,这里默认采用干支纪年法。
|
NineStar |
getNineStar()
九星
|
SixtyCycle |
getSixtyCycle()
干支
|
Twenty |
getTwenty()
运
|
int |
getYear()
年
|
LunarYear |
next(int n)
推移
|
indexOf, toStringpublic static LunarYear fromYear(int year)
year - 年,支持-1到9999年public int getYear()
public int getDayCount()
public String getName()
public int getLeapMonth()
public SixtyCycle getSixtyCycle()
public Twenty getTwenty()
public NineStar getNineStar()
public Direction getJupiterDirection()
public List<LunarMonth> getMonths()
public boolean equals(Object o)
equals 在类中 AbstractCultureCopyright © 2024. All Rights Reserved.