Uses of Enum Class
org.mycore.common.MCRCalendar.CalendarType
-
Uses of MCRCalendar.CalendarType in org.mycore.common
Modifier and TypeMethodDescriptionstatic MCRCalendar.CalendarType
static MCRCalendar.CalendarType
Returns the enum constant of this class with the specified name.static MCRCalendar.CalendarType[]
MCRCalendar.CalendarType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic boolean
MCRCalendar.beforeZero
(String input, MCRCalendar.CalendarType calendarType) Returns true if the given date input is before the year zero of the given calendar type.static String
MCRCalendar.cleanDate
(String input, MCRCalendar.CalendarType calendarType) Cleans a given date by removing era statements like -, AD, B.E. etc.static int
MCRCalendar.getFirstMonth
(MCRCalendar.CalendarType calendarType) Returns the first month of a year for the given calendar type, e.g.static com.ibm.icu.util.Calendar
MCRCalendar.getHistoryDateAsCalendar
(String input, boolean last, MCRCalendar.CalendarType calendarType) static int
MCRCalendar.getLastDayOfMonth
(int month, int year, MCRCalendar.CalendarType calendarType) Returns the last day number for the given month, e.g.static int
MCRCalendar.getLastMonth
(int year, MCRCalendar.CalendarType calendarType) Returns the last month number of the given year for the given calendar type.static boolean
MCRCalendar.isLeapYear
(int year, MCRCalendar.CalendarType calendarType) Returns true, if the given year is a leap year in the given calendar type.static int[]
MCRCalendar.parseDateString
(String dateString, boolean last, MCRCalendar.CalendarType calendarType) Parses a clean date string in German (d.m.y), English (d/m/y) or ISO (y-m-d) form and returns the year, month and day as an array.