public class SolarYear extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
year
年
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
SolarYear(int year) |
| 限定符和类型 | 方法和说明 |
|---|---|
static SolarYear |
fromYear(int year)
从年初始化
|
int |
getDayCount()
天数(1582年355天,平年365天,闰年366天)
|
List<SolarHalfYear> |
getHalfYears()
半年列表
|
List<SolarMonth> |
getMonths()
月份列表
|
String |
getName()
名称
|
List<SolarSeason> |
getSeasons()
季度列表
|
int |
getYear()
年
|
boolean |
isLeap()
是否闰年(1582年以前,使用儒略历,能被4整除即为闰年。
|
SolarYear |
next(int n)
推移
|
equals, indexOf, toStringpublic static SolarYear fromYear(int year)
year - 年,支持1到9999年public int getYear()
public int getDayCount()
public boolean isLeap()
public List<SolarMonth> getMonths()
public List<SolarSeason> getSeasons()
public List<SolarHalfYear> getHalfYears()
Copyright © 2024. All Rights Reserved.