java.lang.Object
org.miaixz.bus.core.center.date.culture.cn.eightchar.ChildLimit
童限(从出生到起运的时间段)
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EightChar八字protected boolean顺逆protected Gender性别protected ChildLimitInfo童限信息static ChildLimitProvider童限计算接口 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChildLimitfromSolarTime(SolarTime birthTime, Gender gender) 通过出生公历时刻初始化int日数所属大运八字int结束年龄结束(即起运)干支年结束(即开始起运)的公历时刻性别int小时数int分钟数int月数int开始年龄起运大运小运开始(即出生)干支年开始(即出生)的公历时刻int年数boolean是否顺推
-
Field Details
-
provider
童限计算接口 -
eightChar
八字 -
gender
性别 -
forward
protected boolean forward顺逆 -
info
童限信息
-
-
Constructor Details
-
ChildLimit
-
-
Method Details
-
fromSolarTime
通过出生公历时刻初始化- Parameters:
birthTime- 出生公历时刻gender- 性别- Returns:
- 童限
-
getEightChar
八字- Returns:
- 八字
-
getGender
性别- Returns:
- 性别
-
isForward
public boolean isForward()是否顺推- Returns:
- true/false
-
getYearCount
public int getYearCount()年数- Returns:
- 年数
-
getMonthCount
public int getMonthCount()月数- Returns:
- 月数
-
getDayCount
public int getDayCount()日数- Returns:
- 日数
-
getHourCount
public int getHourCount()小时数- Returns:
- 小时数
-
getMinuteCount
public int getMinuteCount()分钟数- Returns:
- 分钟数
-
getStartTime
开始(即出生)的公历时刻- Returns:
- 公历时刻
-
getEndTime
结束(即开始起运)的公历时刻- Returns:
- 公历时刻
-
getStartDecadeFortune
起运大运- Returns:
- 大运
-
getDecadeFortune
所属大运- Returns:
- 大运
-
getStartFortune
小运- Returns:
- 小运
-
getStartSixtyCycleYear
开始(即出生)干支年- Returns:
- 干支年
-
getEndSixtyCycleYear
结束(即起运)干支年- Returns:
- 干支年
-
getStartAge
public int getStartAge()开始年龄- Returns:
- 开始年龄
-
getEndAge
public int getEndAge()结束年龄- Returns:
- 结束年龄
-