java.lang.Object
org.miaixz.bus.core.center.date.culture.cn.birth.ChildLimit

public class ChildLimit extends Object
童限(从出生到起运的时间段)
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • provider

      public static ChildLimitProvider provider
      童限计算接口
    • eightChar

      protected EightChar eightChar
      八字
    • gender

      protected Gender gender
      性别
    • forward

      protected boolean forward
      顺逆
    • info

      protected ChildLimitInfo info
      童限信息
  • Constructor Details

  • Method Details

    • fromSolarTime

      public static ChildLimit fromSolarTime(SolarTime birthTime, Gender gender)
      通过出生公历时刻初始化
      Parameters:
      birthTime - 出生公历时刻
      gender - 性别
      Returns:
      童限
    • getEightChar

      public EightChar getEightChar()
      八字
      Returns:
      八字
    • getGender

      public Gender 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

      public SolarTime getStartTime()
      开始(即出生)的公历时刻
      Returns:
      公历时刻
    • getEndTime

      public SolarTime getEndTime()
      结束(即开始起运)的公历时刻
      Returns:
      公历时刻
    • getStartDecadeFortune

      public DecadeFortune getStartDecadeFortune()
      大运
      Returns:
      大运
    • getStartFortune

      public Fortune getStartFortune()
      小运
      Returns:
      小运