public class SolarMonth extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
static int[] |
DAYS
每月天数
|
protected int |
month
月
|
static String[] |
NAMES |
protected SolarYear |
year
年
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
SolarMonth(int year,
int month)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SolarMonth |
fromYm(int year,
int month) |
int |
getDayCount()
天数(1582年10月只有21天)
|
List<SolarDay> |
getDays()
获取本月的公历日列表
|
int |
getIndexInYear()
位于当年的索引(0-11)
|
int |
getMonth()
月
|
String |
getName()
名称
|
SolarSeason |
getSeason()
公历季度
|
int |
getWeekCount(int start)
周数
|
List<SolarWeek> |
getWeeks(int start)
获取本月的公历周列表
|
SolarYear |
getYear()
年
|
SolarMonth |
next(int n)
推移
|
String |
toString() |
equals, indexOfpublic static final String[] NAMES
public static final int[] DAYS
protected SolarYear year
protected int month
public static SolarMonth fromYm(int year, int month)
public SolarYear getYear()
public int getMonth()
public int getDayCount()
public int getIndexInYear()
public SolarSeason getSeason()
public int getWeekCount(int start)
start - 起始星期,1234560分别代表星期一至星期天public String toString()
toString 在类中 AbstractCulturepublic SolarMonth next(int n)
Tymen - 推移步数public List<SolarWeek> getWeeks(int start)
start - 星期几作为一周的开始,1234560分别代表星期一至星期天Copyright © 2024. All Rights Reserved.