程序包 dev.utils.common
类 CalendarUtils.SolarLunar
- java.lang.Object
-
- dev.utils.common.CalendarUtils.SolarLunar
-
- 封闭类:
- CalendarUtils
public static class CalendarUtils.SolarLunar extends java.lang.Objectdetail: 公历农历实体类- 作者:
- Ttt
-
-
字段概要
字段 修饰符和类型 字段 说明 intdaybooleanisLunarLeapintlunarDayintlunarMonthintlunarYearintmonthbooleanresultintyear
-
构造器概要
构造器 构造器 说明 SolarLunar(int year, int month, int day)公历转农历SolarLunar(int lunarYear, int lunarMonth, int lunarDay, boolean isLunarLeap)农历转公历
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.StringgetLunarDayChinese()获取农历中文天数java.lang.StringgetLunarGanZhi()获取干支历intgetLunarLeapDays()获取农历年份闰月天数intgetLunarLeapMonth()获取农历闰月java.lang.StringgetLunarMonthChinese()获取农历中文月份intgetLunarMonthDays()获取农历年份与月份总天数intgetLunarYearDays()获取农历年份总天数java.lang.StringgetSolarTerms()获取二十四节气 ( 公历 )java.lang.StringgetSolarTermsDate()获取二十四节气 ( 公历 ) 时间intgetSolarTermsIndex()获取二十四节气 ( 公历 ) 索引
-
-
-
方法详细资料
-
getLunarYearDays
public int getLunarYearDays()
获取农历年份总天数- 返回:
- 农历年份总天数
-
getLunarLeapDays
public int getLunarLeapDays()
获取农历年份闰月天数- 返回:
- 农历年份闰月天数
-
getLunarLeapMonth
public int getLunarLeapMonth()
获取农历闰月- 返回:
- 农历闰月
-
getLunarMonthDays
public int getLunarMonthDays()
获取农历年份与月份总天数- 返回:
- 农历年份与月份总天数
-
getLunarGanZhi
public java.lang.String getLunarGanZhi()
获取干支历- 返回:
- 干支历
-
getLunarMonthChinese
public java.lang.String getLunarMonthChinese()
获取农历中文月份- 返回:
- 农历中文月份
-
getLunarDayChinese
public java.lang.String getLunarDayChinese()
获取农历中文天数- 返回:
- 农历中文天数
-
getSolarTermsIndex
public int getSolarTermsIndex()
获取二十四节气 ( 公历 ) 索引- 返回:
- 二十四节气 ( 公历 ) 索引
-
getSolarTerms
public java.lang.String getSolarTerms()
获取二十四节气 ( 公历 )- 返回:
- 二十四节气 ( 公历 )
-
getSolarTermsDate
public java.lang.String getSolarTermsDate()
获取二十四节气 ( 公历 ) 时间- 返回:
- 二十四节气 ( 公历 ) 时间
-
-