Package org.aoju.bus.core.date
Class Buddhist
java.lang.Object
org.aoju.bus.core.date.Buddhist
-
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
因果犯忌 -
OTHER_FESTIVAL
-
-
Constructor Details
-
Buddhist
-
-
Method Details
-
getXiu
获取27星宿- Parameters:
month- 佛历月day- 佛历日- Returns:
- 星宿
-
from
-
from
日期转佛历- Parameters:
year- 年month- 月day- 日- Returns:
- this
-
from
日期转佛历- Parameters:
year- 年month- 月day- 日hour- 小时minute- 分钟second- 秒- Returns:
- this
-
getLunar
-
getYear
public int getYear()获取年- Returns:
- the int
-
getMonth
public int getMonth()获取月- Returns:
- the int
-
getDay
public int getDay()获取天- Returns:
- the int
-
getYearInChinese
-
getMonthInChinese
-
getDayInChinese
-
getFestivals
-
getOtherFestivals
-
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
-
getXiuLuck
-
getXiuSong
-
getZheng
-
getAnimal
-
getGong
-
getShou
-
toString
-
toFullString
-