public class LunarMonth extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
dayCount
天数
|
protected JulianDay |
firstJulianDay
初一的儒略日
|
protected int |
indexInYear
位于当年的索引,0-12
|
protected boolean |
leap
是否闰月
|
protected int |
month
月
|
static String[] |
NAMES |
protected LunarYear |
year
农历年
|
| 限定符 | 构造器和说明 |
|---|---|
|
LunarMonth(int year,
int month)
从农历年月初始化
|
protected |
LunarMonth(Object[] cache)
从缓存初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static LunarMonth |
fromYm(int year,
int month)
从农历年月初始化
|
int |
getDayCount()
天数(大月30天,小月29天)
|
List<LunarDay> |
getDays()
本月的农历日列表
|
FetusMonth |
getFetus()
逐月胎神
|
JulianDay |
getFirstJulianDay()
初一的儒略日
|
int |
getIndexInYear()
位于当年的索引(0-12)
|
Direction |
getJupiterDirection()
太岁方位
|
LunarYear |
getLunarYear()
农历年
|
MinorRen |
getMinorRen()
小六壬
|
int |
getMonth()
月
|
int |
getMonthWithLeap()
月
|
String |
getName()
依据国家标准《农历的编算和颁行》GB/T 33661-2017中农历月的命名方法。
|
NineStar |
getNineStar()
九星
|
LunarSeason |
getSeason()
农历季节
|
SixtyCycle |
getSixtyCycle()
干支
|
int |
getWeekCount(int start)
周数
|
List<LunarWeek> |
getWeeks(int start)
本月的农历周列表
|
int |
getYear()
年
|
boolean |
isLeap()
是否闰月
|
LunarMonth |
next(int n)
推移
|
String |
toString() |
equals, indexOfpublic static final String[] NAMES
protected LunarYear year
protected int month
protected boolean leap
protected int dayCount
protected int indexInYear
protected JulianDay firstJulianDay
protected LunarMonth(Object[] cache)
cache - 缓存[农历年(int),农历月(int,闰月为负),天数(int),位于当年的索引(int),初一的儒略日(double)]public LunarMonth(int year,
int month)
year - 农历年month - 农历月,闰月为负public static LunarMonth fromYm(int year, int month)
year - 农历年month - 农历月,闰月为负public LunarYear getLunarYear()
public int getYear()
public int getMonth()
public int getMonthWithLeap()
public int getDayCount()
public int getIndexInYear()
public LunarSeason getSeason()
public JulianDay getFirstJulianDay()
public boolean isLeap()
public int getWeekCount(int start)
start - 起始星期,1234560分别代表星期一至星期天public String getName()
public String toString()
toString 在类中 AbstractCulturepublic LunarMonth next(int n)
Tymen - 推移步数public List<LunarWeek> getWeeks(int start)
start - 星期几作为一周的开始,1234560分别代表星期一至星期天public SixtyCycle getSixtyCycle()
public NineStar getNineStar()
public Direction getJupiterDirection()
public FetusMonth getFetus()
public MinorRen getMinorRen()
Copyright © 2025. All Rights Reserved.