Package com.luna.common.calendarist
Class Calendarist
java.lang.Object
com.luna.common.calendarist.core.CalendaristBase
com.luna.common.calendarist.Calendarist
-
Field Summary
Fields inherited from class com.luna.common.calendarist.core.CalendaristBase
AM_PM, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, fields, from, HOUR, HOUR_OF_DAY, LEAP_MONTH, LEAP_MONTH_OF_CURRENT, MILLISECOND, MINUTE, MONTH, SECOND, TIMEMILLIS, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Calendarist
fromLunar
(int year, int month, int day) static Calendarist
fromLunar
(int year, int month, int day, int hour, int minute, int second, int millis) static Calendarist
fromLunar
(int year, int month, int day, int hour, int minute, int second, int millis, boolean itsLeapMonth) static Calendarist
从阴历开始转换static Calendarist
fromSolar
(int year, int month, int day) static Calendarist
fromSolar
(int year, int month, int day, int hour, int minute, int second, int millis) static Calendarist
从阳历开始转换static Calendarist
从阳历时间戳转换static void
toCycle()
toLunar()
toSolar()
Methods inherited from class com.luna.common.calendarist.core.CalendaristBase
itsLeapMonth, set, setFrom, validate
-
Constructor Details
-
Calendarist
public Calendarist()
-
-
Method Details
-
main
-
fromLunar
从阴历开始转换- Parameters:
lunarDate
- 阴历日期- Returns:
Calendarist
-
fromLunar
-
fromLunar
public static Calendarist fromLunar(int year, int month, int day, int hour, int minute, int second, int millis) -
fromLunar
public static Calendarist fromLunar(int year, int month, int day, int hour, int minute, int second, int millis, boolean itsLeapMonth) -
fromSolar
从阳历时间戳转换- Parameters:
timeMillis
- 阳历时间戳- Returns:
Calendarist
-
fromSolar
从阳历开始转换- Parameters:
solarDate
- 阳历日期- Returns:
Calendarist
-
fromSolar
-
fromSolar
public static Calendarist fromSolar(int year, int month, int day, int hour, int minute, int second, int millis) -
toLunar
-
toSolar
-
toCycle
-