java.lang.Object
org.miaixz.bus.core.center.date.culture.Tradition
org.miaixz.bus.core.center.date.culture.cn.birth.EightChar
All Implemented Interfaces:
Almanac, Culture

public class EightChar extends Tradition
八字
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • EightChar

      public EightChar(SixtyCycle year, SixtyCycle month, SixtyCycle day, SixtyCycle hour)
      初始化
      Parameters:
      year - 年柱
      month - 月柱
      day - 日柱
      hour - 时柱
    • EightChar

      public EightChar(String year, String month, String day, String hour)
      初始化
      Parameters:
      year - 年柱
      month - 月柱
      day - 日柱
      hour - 时柱
  • Method Details

    • getYear

      public SixtyCycle getYear()
      年柱
      Returns:
      年柱
    • getMonth

      public SixtyCycle getMonth()
      月柱
      Returns:
      月柱
    • getDay

      public SixtyCycle getDay()
      日柱
      Returns:
      日柱
    • getHour

      public SixtyCycle getHour()
      时柱
      Returns:
      时柱
    • getFetalOrigin

      public SixtyCycle getFetalOrigin()
      胎元
      Returns:
      胎元
    • getFetalBreath

      public SixtyCycle getFetalBreath()
      胎息
      Returns:
      胎息
    • getOwnSign

      public SixtyCycle getOwnSign()
      命宫
      Returns:
      命宫
    • getBodySign

      public SixtyCycle getBodySign()
      身宫
      Returns:
      身宫
    • getDuty

      public Duty getDuty()
      建除十二值神
      Returns:
      建除十二值神
    • getSolarTimes

      public List<SolarTime> getSolarTimes(int startYear, int endYear)
      公历时刻列表
      Parameters:
      startYear - 开始年(含),支持1-9999年
      endYear - 结束年(含),支持1-9999年
      Returns:
      公历时刻列表
    • getName

      public String getName()
      Description copied from interface: Almanac
      名称
      Returns:
      名称