Class Taoist

java.lang.Object
org.aoju.bus.core.date.Taoist

public class Taoist extends Object
道历
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • BIRTH_YEAR

      public static final int BIRTH_YEAR
      See Also:
    • SAN_HUI

      public static final String[] SAN_HUI
      三会日
    • SAN_YUAN

      public static final String[] SAN_YUAN
      三元日
    • WU_LA

      public static final String[] WU_LA
      五腊日
    • AN_WU

      public static final String[] AN_WU
      暗戊
    • FESTIVAL

      public static final Map<String,List<Taoist.Festival>> FESTIVAL
      日期对应的节日
    • BA_HUI

      public static final Map<String,String> BA_HUI
      八会日
    • BA_JIE

      public static final Map<String,String> BA_JIE
      八节日
  • Constructor Details

    • Taoist

      public Taoist(Lunar lunar)
  • Method Details

    • from

      public static Taoist from(Lunar lunar)
    • from

      public static Taoist from(int year, int month, int day, int hour, int minute, int second)
    • fromYmd

      public static Taoist fromYmd(int year, int month, int day)
    • getLunar

      public Lunar getLunar()
    • getYear

      public int getYear()
    • getMonth

      public int getMonth()
    • getDay

      public int getDay()
    • getYearInChinese

      public String getYearInChinese()
    • getMonthInChinese

      public String getMonthInChinese()
    • getDayInChinese

      public String getDayInChinese()
    • getFestivals

      public List<Taoist.Festival> getFestivals()
    • isDaySanHui

      public boolean isDaySanHui()
      是否三会日
      Returns:
      true/false
    • isDaySanYuan

      public boolean isDaySanYuan()
      是否三元日
      Returns:
      true/false
    • isDayBaJie

      public boolean isDayBaJie()
      是否八节日
      Returns:
      true/false
    • isDayWuLa

      public boolean isDayWuLa()
      是否五腊日
      Returns:
      true/false
    • isDayBaHui

      public boolean isDayBaHui()
      是否八会日
      Returns:
      true/false
    • isDayMingWu

      public boolean isDayMingWu()
      是否明戊日
      Returns:
      true/false
    • isDayAnWu

      public boolean isDayAnWu()
      是否暗戊日
      Returns:
      true/false
    • isDayWu

      public boolean isDayWu()
      是否戊日
      Returns:
      true/false
    • isDayTianShe

      public boolean isDayTianShe()
      是否天赦日
      Returns:
      true/false
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toFullString

      public String toFullString()