Package com.luna.common.calendarist.core
Class CalendaristBase
java.lang.Object
com.luna.common.calendarist.core.CalendaristBase
- Direct Known Subclasses:
Calendarist
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
protected int[]
protected ConvertFromType
从阳历转换 OR 从阴历转换 1: 阳历 2: 阴历static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
itsLeapMonth
(boolean itsLeapMonth) 由阴历转换时,设置要转换的月份是否是闰月void
set
(int field, int value) void
setFrom
(ConvertFromType from) protected static void
validate
(int year, int month, int day, int hour, int minute, int second, int millis)
-
Field Details
-
YEAR
public static final int YEAR- See Also:
-
MONTH
public static final int MONTH- See Also:
-
WEEK_OF_YEAR
public static final int WEEK_OF_YEAR- See Also:
-
WEEK_OF_MONTH
public static final int WEEK_OF_MONTH- See Also:
-
DATE
public static final int DATE- See Also:
-
DAY_OF_MONTH
public static final int DAY_OF_MONTH- See Also:
-
DAY_OF_YEAR
public static final int DAY_OF_YEAR- See Also:
-
DAY_OF_WEEK
public static final int DAY_OF_WEEK- See Also:
-
DAY_OF_WEEK_IN_MONTH
public static final int DAY_OF_WEEK_IN_MONTH- See Also:
-
AM_PM
public static final int AM_PM- See Also:
-
HOUR
public static final int HOUR- See Also:
-
HOUR_OF_DAY
public static final int HOUR_OF_DAY- See Also:
-
MINUTE
public static final int MINUTE- See Also:
-
SECOND
public static final int SECOND- See Also:
-
MILLISECOND
public static final int MILLISECOND- See Also:
-
TIMEMILLIS
public static final int TIMEMILLIS- See Also:
-
LEAP_MONTH_OF_CURRENT
public static final int LEAP_MONTH_OF_CURRENT- See Also:
-
LEAP_MONTH
public static final int LEAP_MONTH- See Also:
-
from
从阳历转换 OR 从阴历转换 1: 阳历 2: 阴历 -
fields
protected int[] fields
-
-
Constructor Details
-
CalendaristBase
public CalendaristBase()
-
-
Method Details
-
validate
protected static void validate(int year, int month, int day, int hour, int minute, int second, int millis) -
set
public void set(int field, int value) -
setFrom
-
itsLeapMonth
public void itsLeapMonth(boolean itsLeapMonth) 由阴历转换时,设置要转换的月份是否是闰月- Parameters:
itsLeapMonth
- 是否是闰月
-