public class SolarDay extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
day
日
|
protected SolarMonth |
month
公历月
|
static String[] |
NAMES |
| 限定符 | 构造器和说明 |
|---|---|
protected |
SolarDay(int year,
int month,
int day)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SolarDay |
fromYmd(int year,
int month,
int day) |
Constellation |
getConstellation()
星座
|
int |
getDay()
日
|
DogDay |
getDogDay()
三伏天
|
SolarFestival |
getFestival()
公历现代节日,如果当天不是公历现代节日,返回null
|
int |
getIndexInYear()
位于当年的索引
|
JulianDay |
getJulianDay()
儒略日
|
LegalHoliday |
getLegalHoliday()
法定假日,如果当天不是法定假日,返回null
|
LunarDay |
getLunarDay()
农历日
|
SolarMonth |
getMonth()
月
|
String |
getName()
名称
|
NineDay |
getNineDay()
数九天
|
PhenologyDay |
getPhenologyDay()
七十二候
|
SolarTerm |
getTerm()
节气
|
Week |
getWeek()
星期
|
boolean |
isAfter(SolarDay target)
是否在指定公历日之后
|
boolean |
isBefore(SolarDay target)
是否在指定公历日之前
|
SolarDay |
next(int n)
推移
|
int |
subtract(SolarDay target)
公历日期相减,获得相差天数
|
String |
toString() |
equals, indexOfpublic static final String[] NAMES
protected SolarMonth month
protected int day
protected SolarDay(int year,
int month,
int day)
year - 年month - 月day - 日public static SolarDay fromYmd(int year, int month, int day)
public SolarMonth getMonth()
public int getDay()
public Week getWeek()
public Constellation getConstellation()
public String toString()
toString 在类中 AbstractCulturepublic boolean isBefore(SolarDay target)
target - 公历日public boolean isAfter(SolarDay target)
target - 公历日public SolarTerm getTerm()
public PhenologyDay getPhenologyDay()
public DogDay getDogDay()
public NineDay getNineDay()
public int getIndexInYear()
public int subtract(SolarDay target)
target - 公历public JulianDay getJulianDay()
public LunarDay getLunarDay()
public LegalHoliday getLegalHoliday()
public SolarFestival getFestival()
Copyright © 2024. All Rights Reserved.