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