Package com.ibm.icu.impl
Class CalendarUtil
java.lang.Object
com.ibm.icu.impl.CalendarUtil
Calendar utilities.
Date/time format service classes in com.ibm.icu.text packages
sometimes need to access calendar internal APIs. But calendar
classes are in com.ibm.icu.util package, so the package local
cannot be used. This class is added in com.ibm.icu.impl
package for sharing some calendar internal code for calendar
and date format.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCalendarType
(ULocale loc) Returns a calendar type for the given locale.
-
Field Details
-
CALKEY
- See Also:
-
DEFCAL
- See Also:
-
-
Constructor Details
-
CalendarUtil
public CalendarUtil()
-
-
Method Details
-
getCalendarType
Returns a calendar type for the given locale. When the given locale has calendar keyword, the value of calendar keyword is returned. Otherwise, the default calendar type for the locale is returned.- Parameters:
loc
- The locale- Returns:
- Calendar type string, such as "gregorian"
-