Package org.aoju.bus.core.date
Class Lunar.Year
java.lang.Object
org.aoju.bus.core.date.Lunar.Year
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean... args) 构建字符串内容static Lunar.Yearfrom(int lunarYear) 通过农历年初始化getCaoZi()获取草子几分int获取总天数getDeJin()获取得金(正月第一个辛日是初几,就是几日得金)获取分饼(正月第一个丙日是初几,就是几人分饼)getGan()获取天干int获取天干序号,从0开始获取干支获取耕田(正月第一个丑日是初几,就是几牛耕田)获取几屠共猪获取花收几分获取甲田几分获取节气儒略日们获取几姑看蚕int获取闰月getMonth(int lunarMonth) 获取农历月获取农历月们获取当年的农历月们获取九星获取财神方位获取财神方位描述获取福神方位(默认流派:2)getPositionFu(int sect) 获取福神方位获取福神方位描述(默认流派:2)getPositionFuDesc(int sect) 获取福神方位描述获取太岁方位获取太岁方位描述获取喜神方位获取喜神方位描述获取阳贵神方位获取阳贵神方位描述获取阴贵神方位获取阴贵神方位描述获取几鸡抢米获取几人几丙获取几人几锄获取几鼠偷粮getTuoGu()获取几马驮谷intgetYear()获取农历年getYuan()获取三元getYun()获取九运protected StringgetZaoByGan(int index, String name) protected StringgetZaoByZhi(int index, String name) getZhi()获取地支int获取地支序号,从0开始获取治水(正月第一个辰日是初几,就是几龙治水)next(int n) 获取往后推几年的阴历年,如果要往前推,则年数用负数
-
Constructor Details
-
Year
public Year(int lunarYear) 初始化- Parameters:
lunarYear- 农历年
-
-
Method Details
-
from
-
getDayCount
public int getDayCount()获取总天数- Returns:
- 天数
-
getMonthsInYear
-
getYear
public int getYear()获取农历年- Returns:
- 农历年
-
getMonths
-
getJieQiJulianDays
-
getGanIndex
public int getGanIndex()获取天干序号,从0开始- Returns:
- 序号
-
getZhiIndex
public int getZhiIndex()获取地支序号,从0开始- Returns:
- 序号
-
getGan
-
getZhi
-
getGanZhi
-
getMonth
获取农历月- Parameters:
lunarMonth- 月,1-12,闰月为负数,如闰2月为-2- Returns:
- 农历月
-
getLeapMonth
public int getLeapMonth()获取闰月- Returns:
- 闰月数字,1代表闰1月,0代表无闰月
-
getZaoByGan
-
getZaoByZhi
-
getTouLiang
-
getCaoZi
-
getGengTian
-
getHuaShou
-
getZhiShui
-
getTuoGu
-
getQiangMi
-
getKanCan
-
getGongZhu
-
getJiaTian
-
getFenBing
-
getDeJin
-
getRenBing
-
getRenChu
-
getYuan
-
getYun
-
getNineStar
-
getPositionXi
-
getPositionXiDesc
-
getPositionYangGui
-
getPositionYangGuiDesc
-
getPositionYinGui
-
getPositionYinGuiDesc
-
getPositionFu
-
getPositionFu
-
getPositionFuDesc
-
getPositionFuDesc
-
getPositionCai
-
getPositionCaiDesc
-
getPositionTaiSui
-
getPositionTaiSuiDesc
-
next
-
build
-