public class SolarTime extends AbstractTyme
| 限定符和类型 | 字段和说明 |
|---|---|
protected SolarDay |
day
公历日
|
protected int |
hour
时
|
protected int |
minute
分
|
protected int |
second
秒
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
SolarTime(int year,
int month,
int day,
int hour,
int minute,
int second)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SolarTime |
fromYmdHms(int year,
int month,
int day,
int hour,
int minute,
int second) |
SolarDay |
getDay()
日
|
int |
getHour()
时
|
JulianDay |
getJulianDay()
儒略日
|
LunarHour |
getLunarHour()
时辰
|
int |
getMinute()
分
|
String |
getName()
名称
|
int |
getSecond()
秒
|
SolarTerm |
getTerm()
节气
|
boolean |
isAfter(SolarTime target)
是否在指定公历时刻之后
|
boolean |
isBefore(SolarTime target)
是否在指定公历时刻之前
|
SolarTime |
next(int n)
推移
|
int |
subtract(SolarTime target)
公历时刻相减,获得相差秒数
|
String |
toString() |
equals, indexOfprotected SolarDay day
protected int hour
protected int minute
protected int second
protected SolarTime(int year,
int month,
int day,
int hour,
int minute,
int second)
year - 年month - 月day - 日hour - 时minute - 分second - 秒public static SolarTime fromYmdHms(int year, int month, int day, int hour, int minute, int second)
public SolarDay getDay()
public int getHour()
public int getMinute()
public int getSecond()
public String toString()
toString 在类中 AbstractCulturepublic boolean isBefore(SolarTime target)
target - 公历时刻public boolean isAfter(SolarTime target)
target - 公历时刻public SolarTerm getTerm()
public JulianDay getJulianDay()
public int subtract(SolarTime target)
target - 公历时刻public SolarTime next(int n)
n - 推移秒数public LunarHour getLunarHour()
Copyright © 2024. All Rights Reserved.