Package org.aoju.bus.core.date
Class Buddhist
java.lang.Object
org.aoju.bus.core.date.Buddhist
佛历
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Buddhistfrom(int year, int month, int day) 日期转佛历static Buddhistfrom(int year, int month, int day, int hour, int minute, int second) 日期转佛历static Buddhist日期转佛历获取动物intgetDay()获取天获取农历天获取佛历因果犯忌getGong()获取宫getLunar()获取农历年intgetMonth()获取月获取农历月getShou()获取兽getXiu()获取星宿static StringgetXiu(int month, int day) 获取27星宿获取宿吉凶获取宿歌诀intgetYear()获取年获取中国年getZheng()获取政boolean是否杨公忌boolean是否观音斋boolean是否朔望斋boolean是否六斋日boolean是否十斋日boolean是否月斋转换为StringtoString()
-
Field Details
-
DEAD_YEAR
public static final int DEAD_YEAR佛历年- See Also:
-
DAY_ZHAI_GUAN_YIN
观音斋日期 -
XIU_27
27星宿,佛教从印度传入中国,印度把28星宿改为27星宿,把牛宿(牛金牛)纳入了女宿(女土蝠)。 -
FESTIVAL
因果犯忌
-
-
Constructor Details
-
Buddhist
构造- Parameters:
lunar- 农历年
-
-
Method Details
-
getXiu
获取27星宿- Parameters:
month- 佛历月day- 佛历日- Returns:
- 星宿
-
from
日期转佛历- Parameters:
lunar- 农历年- Returns:
- this
-
from
日期转佛历- Parameters:
year- 年month- 月day- 日- Returns:
- this
-
from
日期转佛历- Parameters:
year- 年month- 月day- 日hour- 小时minute- 分钟second- 秒- Returns:
- this
-
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
获取中国年- Returns:
- the string
-
getMonthInChinese
获取农历月- Returns:
- the string
-
getDayInChinese
获取农历天- Returns:
- the string
-
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
获取星宿- Returns:
- 星宿
-
getXiuLuck
获取宿吉凶- Returns:
- 吉/凶
-
getXiuSong
获取宿歌诀- Returns:
- 宿歌诀
-
getZheng
获取政- Returns:
- 政
-
getAnimal
获取动物- Returns:
- 动物
-
getGong
获取宫- Returns:
- 宫
-
getShou
获取兽- Returns:
- 兽
-
toString
-
toFullString
转换为String- Returns:
- the string
-