程序包 dev.utils.common

类 CalendarUtils.SolarLunar

java.lang.Object
dev.utils.common.CalendarUtils.SolarLunar
封闭类:
CalendarUtils

public static class CalendarUtils.SolarLunar extends Object
detail: 公历农历实体类
作者:
Ttt
  • 字段详细资料

    • year

      public final int year
    • month

      public final int month
    • day

      public final int day
    • result

      public final boolean result
    • lunarYear

      public final int lunarYear
    • lunarMonth

      public final int lunarMonth
    • lunarDay

      public final int lunarDay
    • isLunarLeap

      public final boolean isLunarLeap
  • 构造器详细资料

    • SolarLunar

      public SolarLunar(int year, int month, int day)
      公历转农历
      参数:
      year - 公历年
      month - 公历月
      day - 公历日
    • SolarLunar

      public SolarLunar(int lunarYear, int lunarMonth, int lunarDay, boolean isLunarLeap)
      农历转公历
      参数:
      lunarYear - 农历年
      lunarMonth - 农历月
      lunarDay - 农历日
      isLunarLeap - 是否闰月
  • 方法详细资料

    • getLunarYearDays

      public int getLunarYearDays()
      获取农历年份总天数
      返回:
      农历年份总天数
    • getLunarLeapDays

      public int getLunarLeapDays()
      获取农历年份闰月天数
      返回:
      农历年份闰月天数
    • getLunarLeapMonth

      public int getLunarLeapMonth()
      获取农历闰月
      返回:
      农历闰月
    • getLunarMonthDays

      public int getLunarMonthDays()
      获取农历年份与月份总天数
      返回:
      农历年份与月份总天数
    • getLunarGanZhi

      public String getLunarGanZhi()
      获取干支历
      返回:
      干支历
    • getLunarMonthChinese

      public String getLunarMonthChinese()
      获取农历中文月份
      返回:
      农历中文月份
    • getLunarDayChinese

      public String getLunarDayChinese()
      获取农历中文天数
      返回:
      农历中文天数
    • getSolarTermsIndex

      public int getSolarTermsIndex()
      获取二十四节气 ( 公历 ) 索引
      返回:
      二十四节气 ( 公历 ) 索引
    • getSolarTerms

      public String getSolarTerms()
      获取二十四节气 ( 公历 )
      返回:
      二十四节气 ( 公历 )
    • getSolarTermsDate

      public String getSolarTermsDate()
      获取二十四节气 ( 公历 ) 时间
      返回:
      二十四节气 ( 公历 ) 时间