public class Buddhist extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Buddhist.Festival
佛历因果犯忌
|
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DAY_ZHAI_GUAN_YIN
观音斋日期
|
static int |
DEAD_YEAR |
static Map<String,List<Buddhist.Festival>> |
FESTIVAL
因果犯忌
|
static String[] |
XIU_27
27星宿,佛教从印度传入中国,印度把28星宿改为27星宿,把牛宿(牛金牛)纳入了女宿(女土蝠)。
|
| Modifier and Type | Method and Description |
|---|---|
static Buddhist |
from(int year,
int month,
int day) |
static Buddhist |
from(int year,
int month,
int day,
int hour,
int minute,
int second) |
static Buddhist |
from(Lunar lunar) |
String |
getAnimal()
获取动物
|
int |
getDay() |
String |
getDayInChinese() |
List<Buddhist.Festival> |
getFestivals() |
String |
getGong()
获取宫
|
Lunar |
getLunar() |
int |
getMonth() |
String |
getMonthInChinese() |
String |
getShou()
获取兽
|
String |
getXiu()
获取星宿
|
static String |
getXiu(int month,
int day)
获取27星宿
|
String |
getXiuLuck()
获取宿吉凶
|
String |
getXiuSong()
获取宿歌诀
|
int |
getYear() |
String |
getYearInChinese() |
String |
getZheng()
获取政
|
boolean |
isDayYangGong()
是否杨公忌
|
boolean |
isDayZhaiGuanYin()
是否观音斋
|
boolean |
isDayZhaiShuoWang()
是否朔望斋
|
boolean |
isDayZhaiSix()
是否六斋日
|
boolean |
isDayZhaiTen()
是否十斋日
|
boolean |
isMonthZhai()
是否月斋
|
String |
toFullString() |
String |
toString() |
public static final int DEAD_YEAR
public static final String[] DAY_ZHAI_GUAN_YIN
public static final Map<String,List<Buddhist.Festival>> FESTIVAL
public static final String[] XIU_27
public Buddhist(Lunar lunar)
public static String getXiu(int month, int day)
month - 佛历月day - 佛历日public static Buddhist from(int year, int month, int day)
public static Buddhist from(int year, int month, int day, int hour, int minute, int second)
public Lunar getLunar()
public int getYear()
public int getMonth()
public int getDay()
public String getYearInChinese()
public String getMonthInChinese()
public String getDayInChinese()
public List<Buddhist.Festival> getFestivals()
public boolean isMonthZhai()
public boolean isDayYangGong()
public boolean isDayZhaiShuoWang()
public boolean isDayZhaiSix()
public boolean isDayZhaiTen()
public boolean isDayZhaiGuanYin()
public String getXiu()
public String getXiuLuck()
public String getXiuSong()
public String getZheng()
public String getAnimal()
public String getGong()
public String getShou()
public String toFullString()
Copyright © 2022. All rights reserved.