Uses of Class
com.ibm.icu.util.Calendar
Packages that use Calendar
Package
Description
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
International calendars and other utility classes.
-
Uses of Calendar in com.ibm.icu.text
Fields in com.ibm.icu.text declared as CalendarModifier and TypeFieldDescriptionprotected CalendarDateFormat.calendarThe calendar thatDateFormatuses to produce the time field values needed to implement date and time formatting.Methods in com.ibm.icu.text that return CalendarModifier and TypeMethodDescriptionDateFormat.getCalendar()Returns the calendar associated with this date/time formatter.Methods in com.ibm.icu.text with parameters of type CalendarModifier and TypeMethodDescriptionabstract StringBufferDateFormat.format(Calendar cal, StringBuffer toAppendTo, FieldPosition fieldPosition) Formats a date into a date/time string.final StringBufferDateIntervalFormat.format(Calendar fromCalendar, Calendar toCalendar, StringBuffer appendTo, FieldPosition pos) Format 2 Calendars to produce a string.SimpleDateFormat.format(Calendar cal, StringBuffer toAppendTo, FieldPosition pos) Formats a date or time, which is the standard millis since January 1, 1970, 00:00:00 GMT.DateIntervalFormat.formatToValue(Calendar fromCalendar, Calendar toCalendar) Format 2 Calendars to produce a FormattedDateInterval.static ResourceBundleDateFormatSymbols.getDateFormatBundle(Calendar cal, ULocale locale) Deprecated.ICU 4.0static ResourceBundleDateFormatSymbols.getDateFormatBundle(Calendar cal, Locale locale) Deprecated.ICU 4.0static final DateFormatDateFormat.getDateInstance(Calendar cal, int dateStyle) Creates aDateFormatobject for the default locale that can be used to format dates in the calendar system specified bycal.static final DateFormatDateFormat.getDateInstance(Calendar cal, int dateStyle, ULocale locale) Creates aDateFormatobject that can be used to format dates in the calendar system specified bycal.static final DateFormatDateFormat.getDateInstance(Calendar cal, int dateStyle, Locale locale) Creates aDateFormatobject that can be used to format dates in the calendar system specified bycal.static final DateFormatDateFormat.getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle) Creates aDateFormatobject for the default locale that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, ULocale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, Locale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getInstance(Calendar cal) Returns a default date/time formatter that uses the SHORT style for both the date and the time.static final DateFormatDateFormat.getInstance(Calendar cal, ULocale locale) Returns a date/time formatter that uses the SHORT style for both the date and the time.static final DateFormatDateFormat.getInstance(Calendar cal, Locale locale) Returns a date/time formatter that uses the SHORT style for both the date and the time.static final DateFormatDateFormat.getInstanceForSkeleton(Calendar cal, String skeleton, ULocale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getInstanceForSkeleton(Calendar cal, String skeleton, Locale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getPatternInstance(Calendar cal, String skeleton, ULocale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.static final DateFormatDateFormat.getPatternInstance(Calendar cal, String skeleton, Locale locale) Creates aDateFormatobject that can be used to format dates and times in the calendar system specified bycal.DateIntervalFormat.getPatterns(Calendar fromCalendar, Calendar toCalendar, Output<String> part2) Deprecated.This API is ICU internal only.static final DateFormatDateFormat.getTimeInstance(Calendar cal, int timeStyle) Creates aDateFormatobject that can be used to format times in the calendar system specified bycal.static final DateFormatDateFormat.getTimeInstance(Calendar cal, int timeStyle, ULocale locale) Creates aDateFormatobject that can be used to format times in the calendar system specified bycal.static final DateFormatDateFormat.getTimeInstance(Calendar cal, int timeStyle, Locale locale) Creates aDateFormatobject that can be used to format times in the calendar system specified bycal.final StringBufferSimpleDateFormat.intervalFormatByAlgorithm(Calendar fromCalendar, Calendar toCalendar, StringBuffer appendTo, FieldPosition pos) Deprecated.This API is ICU internal only.protected intSimpleDateFormat.matchQuarterString(String text, int start, int field, String[] data, Calendar cal) Attempt to match the text at a given position against an array of quarter strings.protected intSimpleDateFormat.matchString(String text, int start, int field, String[] data, Calendar cal) Attempt to match the text at a given position against an array of strings.abstract voidDateFormat.parse(String text, Calendar cal, ParsePosition pos) Parses a date/time string according to the given parse position.voidSimpleDateFormat.parse(String text, Calendar cal, ParsePosition parsePos) Overrides DateFormatvoidDateFormat.setCalendar(Calendar newCalendar) Sets the calendar to be used by this date format.protected voidChineseDateFormat.subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, char patternCharToOutput, Calendar cal) Deprecated.This API is ICU internal only.protected StringSimpleDateFormat.subFormat(char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, char patternCharToOutput, Calendar cal) Deprecated.This API is ICU internal only.protected StringSimpleDateFormat.subFormat(char ch, int count, int beginOffset, FieldPosition pos, DateFormatSymbols fmtData, Calendar cal) Formats a single field, given its pattern character.protected voidSimpleDateFormat.subFormat(StringBuffer buf, char ch, int count, int beginOffset, int fieldNum, DisplayContext capitalizationContext, FieldPosition pos, char patternCharToOutput, Calendar cal) Deprecated.This API is ICU internal only.protected intChineseDateFormat.subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal) Deprecated.ICU 50protected intSimpleDateFormat.subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal) Protected method that converts one field of the input string into a numeric field value incal.Method parameters in com.ibm.icu.text with type arguments of type CalendarModifier and TypeMethodDescriptionstatic ResourceBundleDateFormatSymbols.getDateFormatBundle(Class<? extends Calendar> calendarClass, ULocale locale) Deprecated.ICU 4.0static ResourceBundleDateFormatSymbols.getDateFormatBundle(Class<? extends Calendar> calendarClass, Locale locale) Deprecated.ICU 4.0Constructors in com.ibm.icu.text with parameters of type CalendarModifierConstructorDescriptionChineseDateFormatSymbols(Calendar cal, ULocale locale) Deprecated.ICU 50ChineseDateFormatSymbols(Calendar cal, Locale locale) Deprecated.ICU 50DateFormatSymbols(Calendar cal, ULocale locale) Returns theDateFormatSymbolsobject that should be used to format a calendar system's dates in the given locale.DateFormatSymbols(Calendar cal, Locale locale) Returns theDateFormatSymbolsobject that should be used to format a calendar system's dates in the given locale.Constructor parameters in com.ibm.icu.text with type arguments of type CalendarModifierConstructorDescriptionDateFormatSymbols(Class<? extends Calendar> calendarClass, ULocale locale) Variant of DateFormatSymbols(Calendar, ULocale) that takes the Calendar class instead of a Calendar instance.DateFormatSymbols(Class<? extends Calendar> calendarClass, Locale locale) Variant of DateFormatSymbols(Calendar, Locale) that takes the Calendar class instead of a Calendar instance. -
Uses of Calendar in com.ibm.icu.util
Subclasses of Calendar in com.ibm.icu.utilModifier and TypeClassDescriptionclassBuddhistCalendaris a subclass ofGregorianCalendarthat numbers years since the birth of the Buddha.classChineseCalendaris a concrete subclass ofCalendarthat implements a traditional Chinese calendar.final classImplement the Coptic calendar system.classDeprecated.This API is ICU internal only.final classImplement the Ethiopic calendar system.class.classHebrewCalendaris a subclass ofCalendarthat that implements the traditional Hebrew calendar.classIndianCalendaris a subclass ofGregorianCalendarthat numbers years since the birth of the Buddha.classIslamicCalendaris a subclass ofCalendarthat that implements the Islamic civil and religious calendars.classJapaneseCalendaris a subclass ofGregorianCalendarthat numbers years and eras based on the reigns of the Japanese emperors.classDeprecated.This API is ICU internal only.classTaiwanCalendaris a subclass ofGregorianCalendarthat numbers years since 1912.Classes in com.ibm.icu.util that implement interfaces with type arguments of type CalendarMethods in com.ibm.icu.util that return CalendarModifier and TypeMethodDescriptionCalendar.FormatConfiguration.getCalendar()Deprecated.This API is ICU internal only.GlobalizationPreferences.getCalendar()Get a copy of the calendar according to the settings.static CalendarCalendar.getInstance()Returns a calendar using the default time zone and locale.static CalendarCalendar.getInstance(TimeZone zone) Returns a calendar using the specified time zone and default locale.static CalendarCalendar.getInstance(TimeZone zone, ULocale locale) Returns a calendar with the specified time zone and locale.static CalendarCalendar.getInstance(TimeZone zone, Locale aLocale) Returns a calendar with the specified time zone and locale.static CalendarCalendar.getInstance(ULocale locale) Returns a calendar using the default time zone and specified locale.static CalendarCalendar.getInstance(Locale aLocale) Returns a calendar using the default time zone and specified locale.protected CalendarGlobalizationPreferences.guessCalendar()This function can be overridden by subclasses to use different heuristics.Calendar.setWeekData(Calendar.WeekData wdata) Set data in this calendar based on the WeekData input.Methods in com.ibm.icu.util with parameters of type CalendarModifier and TypeMethodDescriptionintCompares the times (in millis) represented by twoCalendarobjects.static StringCalendar.getDateAtTimePattern(Calendar cal, ULocale uLocale, int dateStyle) Deprecated.This API is ICU internal only.static StringCalendar.getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) Deprecated.This API is ICU internal only.booleanCalendar.isEquivalentTo(Calendar other) Returns true if the given Calendar object is equivalent to this one.booleanGregorianCalendar.isEquivalentTo(Calendar other) Returns true if the given Calendar object is equivalent to this one.GlobalizationPreferences.setCalendar(Calendar calendar) Sets the calendar.