Class Buddhist

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

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

    • DEAD_YEAR

      public static final int DEAD_YEAR
      佛历年
      See Also:
    • DAY_ZHAI_GUAN_YIN

      public static final String[] DAY_ZHAI_GUAN_YIN
      观音斋日期
    • XIU_27

      public static final String[] XIU_27
      27星宿,佛教从印度传入中国,印度把28星宿改为27星宿,把牛宿(牛金牛)纳入了女宿(女土蝠)。
    • FESTIVAL

      public static final Map<String,List<Buddhist.Festival>> FESTIVAL
      因果犯忌
  • Constructor Details

    • Buddhist

      public Buddhist(Lunar lunar)
      构造
      Parameters:
      lunar - 农历年
  • Method Details

    • getXiu

      public static String getXiu(int month, int day)
      获取27星宿
      Parameters:
      month - 佛历月
      day - 佛历日
      Returns:
      星宿
    • from

      public static Buddhist from(Lunar lunar)
      日期转佛历
      Parameters:
      lunar - 农历年
      Returns:
      this
    • from

      public static Buddhist from(int year, int month, int day)
      日期转佛历
      Parameters:
      year - 年
      month - 月
      day - 日
      Returns:
      this
    • from

      public static Buddhist from(int year, int month, int day, int hour, int minute, int second)
      日期转佛历
      Parameters:
      year - 年
      month - 月
      day - 日
      hour - 小时
      minute - 分钟
      second - 秒
      Returns:
      this
    • getLunar

      public Lunar getLunar()
      获取农历年
      Returns:
      the lunar
    • getYear

      public int getYear()
      获取年
      Returns:
      the int
    • getMonth

      public int getMonth()
      获取月
      Returns:
      the int
    • getDay

      public int getDay()
      获取天
      Returns:
      the int
    • getYearInChinese

      public String getYearInChinese()
      获取中国年
      Returns:
      the string
    • getMonthInChinese

      public String getMonthInChinese()
      获取农历月
      Returns:
      the string
    • getDayInChinese

      public String getDayInChinese()
      获取农历天
      Returns:
      the string
    • getFestivals

      public List<Buddhist.Festival> getFestivals()
      获取佛历因果犯忌
      Returns:
      the list
    • isMonthZhai

      public boolean isMonthZhai()
      是否月斋
      Returns:
      true/false
    • isDayYangGong

      public boolean isDayYangGong()
      是否杨公忌
      Returns:
      true/false
    • isDayZhaiShuoWang

      public boolean isDayZhaiShuoWang()
      是否朔望斋
      Returns:
      true/false
    • isDayZhaiSix

      public boolean isDayZhaiSix()
      是否六斋日
      Returns:
      true/false
    • isDayZhaiTen

      public boolean isDayZhaiTen()
      是否十斋日
      Returns:
      true/false
    • isDayZhaiGuanYin

      public boolean isDayZhaiGuanYin()
      是否观音斋
      Returns:
      true/false
    • getXiu

      public String getXiu()
      获取星宿
      Returns:
      星宿
    • getXiuLuck

      public String getXiuLuck()
      获取宿吉凶
      Returns:
      吉/凶
    • getXiuSong

      public String getXiuSong()
      获取宿歌诀
      Returns:
      宿歌诀
    • getZheng

      public String getZheng()
      获取政
      Returns:
    • getAnimal

      public String getAnimal()
      获取动物
      Returns:
      动物
    • getGong

      public String getGong()
      获取宫
      Returns:
    • getShou

      public String getShou()
      获取兽
      Returns:
    • toString

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

      public String toFullString()
      转换为String
      Returns:
      the string