Uses of Class
com.ibm.icu.util.Calendar
Packages that use Calendar
Package
Description
-
Uses of Calendar in com.ibm.icu.dev.demo.calendar
Fields in com.ibm.icu.dev.demo.calendar declared as CalendarModifier and TypeFieldDescription(package private) Calendar
CalendarCalcFrame.CalendarRec.calendar
(package private) Calendar
CalendarFrame.CalendarRec.calendar
private Calendar[]
CalendarFrame.calendars
private Calendar[]
CalendarPanel.fCalendar
Methods in com.ibm.icu.dev.demo.calendar that return CalendarModifier and TypeMethodDescriptionCalendarPanel.getCalendar
(int index) private static final Calendar
CalendarCalcFrame.makeIslamic
(boolean civil) private static final Calendar
CalendarFrame.makeIslamic
(boolean civil) Methods in com.ibm.icu.dev.demo.calendar with parameters of type CalendarConstructors in com.ibm.icu.dev.demo.calendar with parameters of type CalendarModifierConstructorDescriptionCalendarRec
(String nameStr, Calendar cal) CalendarRec
(String nameStr, Calendar cal) -
Uses of Calendar in com.ibm.icu.dev.demo.holiday
Fields in com.ibm.icu.dev.demo.holiday declared as CalendarMethods in com.ibm.icu.dev.demo.holiday that return Calendar -
Uses of Calendar in com.ibm.icu.impl
Methods in com.ibm.icu.impl that return CalendarModifier and TypeMethodDescriptionprivate Calendar
RelativeDateFormat.initializeCalendar
(TimeZone zone, ULocale locale) initializes fCalendar from parameters.private static Calendar
JavaTimeConverters.millisToCalendar
(long epochMillis) Deprecated.private static Calendar
JavaTimeConverters.millisToCalendar
(long epochMillis, TimeZone timeZone) Deprecated.(package private) static Calendar
JavaTimeConverters.temporalToCalendar
(ChronoLocalDate date) Deprecated.static Calendar
JavaTimeConverters.temporalToCalendar
(LocalDateTime dateTime) Deprecated.This API is ICU internal only.static Calendar
JavaTimeConverters.temporalToCalendar
(LocalTime time) Deprecated.This API is ICU internal only.static Calendar
JavaTimeConverters.temporalToCalendar
(OffsetDateTime dateTime) Deprecated.This API is ICU internal only.static Calendar
JavaTimeConverters.temporalToCalendar
(OffsetTime time) Deprecated.This API is ICU internal only.static Calendar
JavaTimeConverters.temporalToCalendar
(Temporal temp) Deprecated.This API is ICU internal only.static Calendar
JavaTimeConverters.temporalToCalendar
(ZonedDateTime dateTime) Deprecated.This API is ICU internal only.Methods in com.ibm.icu.impl with parameters of type CalendarModifier and TypeMethodDescriptionprivate static int
RelativeDateFormat.dayDifference
(Calendar until) RelativeDateFormat.format
(Calendar cal, StringBuffer toAppendTo, FieldPosition fieldPosition) private MessageFormat
RelativeDateFormat.initializeCombinedFormat
(Calendar cal, ULocale locale) void
RelativeDateFormat.parse
(String text, Calendar cal, ParsePosition pos) Constructors in com.ibm.icu.impl with parameters of type CalendarModifierConstructorDescriptionRelativeDateFormat
(int timeStyle, int dateStyle, ULocale locale, Calendar cal) -
Uses of Calendar in com.ibm.icu.impl.jdkadapter
Fields in com.ibm.icu.impl.jdkadapter declared as CalendarMethods in com.ibm.icu.impl.jdkadapter that return CalendarMethods in com.ibm.icu.impl.jdkadapter with parameters of type CalendarConstructors in com.ibm.icu.impl.jdkadapter with parameters of type Calendar -
Uses of Calendar in com.ibm.icu.text
Fields in com.ibm.icu.text declared as CalendarModifier and TypeFieldDescriptionprotected Calendar
DateFormat.calendar
The calendar thatDateFormat
uses to produce the time field values needed to implement date and time formatting.private Calendar
DateIntervalFormat.fFromCalendar
private Calendar
DateIntervalFormat.fToCalendar
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 TypeMethodDescriptionprivate boolean
SimpleDateFormat.diffCalFieldValue
(Calendar fromCalendar, Calendar toCalendar, Object[] items, int i) check whether the i-th item in 2 calendar is in different value.private final StringBuffer
DateIntervalFormat.fallbackFormat
(Calendar fromCalendar, Calendar toCalendar, boolean fromToOnSameDay, StringBuffer appendTo, FieldPosition pos, DateIntervalFormat.FormatOutput output, List<FieldPosition> attributes) private final StringBuffer
DateIntervalFormat.fallbackFormat
(Calendar fromCalendar, Calendar toCalendar, boolean fromToOnSameDay, StringBuffer appendTo, FieldPosition pos, DateIntervalFormat.FormatOutput output, List<FieldPosition> attributes, String fullPattern) private final void
DateIntervalFormat.fallbackFormatRange
(Calendar fromCalendar, Calendar toCalendar, StringBuffer appendTo, StringBuilder patternSB, FieldPosition pos, DateIntervalFormat.FormatOutput output, List<FieldPosition> attributes) Like fallbackFormat, but specifically for ranges.abstract StringBuffer
DateFormat.format
(Calendar cal, StringBuffer toAppendTo, FieldPosition fieldPosition) Formats a date into a date/time string.final StringBuffer
DateIntervalFormat.format
(Calendar fromCalendar, Calendar toCalendar, StringBuffer appendTo, FieldPosition pos) Format 2 Calendars to produce a string.private StringBuffer
SimpleDateFormat.format
(Calendar cal, DisplayContext capitalizationContext, StringBuffer toAppendTo, FieldPosition pos, List<FieldPosition> attributes) 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.(package private) StringBuffer
SimpleDateFormat.format
(Calendar cal, StringBuffer toAppendTo, FieldPosition pos, List<FieldPosition> attributes) Internal formatting method that accepts an attributes list.private StringBuffer
DateIntervalFormat.formatImpl
(Calendar fromCalendar, Calendar toCalendar, StringBuffer appendTo, FieldPosition pos, DateIntervalFormat.FormatOutput output, List<FieldPosition> attributes) DateIntervalFormat.formatToValue
(Calendar fromCalendar, Calendar toCalendar) Format 2 Calendars to produce a FormattedDateInterval.private static DateFormat
Creates a DateFormat with the given time and/or date style in the given locale.static ResourceBundle
DateFormatSymbols.getDateFormatBundle
(Calendar cal, ULocale locale) Deprecated.ICU 4.0static ResourceBundle
DateFormatSymbols.getDateFormatBundle
(Calendar cal, Locale locale) Deprecated.ICU 4.0static final DateFormat
DateFormat.getDateInstance
(Calendar cal, int dateStyle) Creates aDateFormat
object for the default locale that can be used to format dates in the calendar system specified bycal
.static final DateFormat
DateFormat.getDateInstance
(Calendar cal, int dateStyle, ULocale locale) Creates aDateFormat
object that can be used to format dates in the calendar system specified bycal
.static final DateFormat
DateFormat.getDateInstance
(Calendar cal, int dateStyle, Locale locale) Creates aDateFormat
object that can be used to format dates in the calendar system specified bycal
.static final DateFormat
DateFormat.getDateTimeInstance
(Calendar cal, int dateStyle, int timeStyle) Creates aDateFormat
object for the default locale that can be used to format dates and times in the calendar system specified bycal
.static final DateFormat
DateFormat.getDateTimeInstance
(Calendar cal, int dateStyle, int timeStyle, ULocale locale) Creates aDateFormat
object that can be used to format dates and times in the calendar system specified bycal
.static final DateFormat
DateFormat.getDateTimeInstance
(Calendar cal, int dateStyle, int timeStyle, Locale locale) Creates aDateFormat
object that can be used to format dates and times in the calendar system specified bycal
.static final DateFormat
DateFormat.getInstance
(Calendar cal) Returns a default date/time formatter that uses the SHORT style for both the date and the time.static final DateFormat
DateFormat.getInstance
(Calendar cal, ULocale locale) Returns a date/time formatter that uses the SHORT style for both the date and the time.static final DateFormat
DateFormat.getInstance
(Calendar cal, Locale locale) Returns a date/time formatter that uses the SHORT style for both the date and the time.static final DateFormat
DateFormat.getInstanceForSkeleton
(Calendar cal, String skeleton, ULocale locale) Creates aDateFormat
object that can be used to format dates and times in the calendar system specified bycal
.static final DateFormat
DateFormat.getInstanceForSkeleton
(Calendar cal, String skeleton, Locale locale) Creates aDateFormat
object that can be used to format dates and times in the calendar system specified bycal
.static final DateFormat
DateFormat.getPatternInstance
(Calendar cal, String skeleton, ULocale locale) Creates aDateFormat
object that can be used to format dates and times in the calendar system specified bycal
.static final DateFormat
DateFormat.getPatternInstance
(Calendar cal, String skeleton, Locale locale) Creates aDateFormat
object 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 DateFormat
DateFormat.getTimeInstance
(Calendar cal, int timeStyle) Creates aDateFormat
object that can be used to format times in the calendar system specified bycal
.static final DateFormat
DateFormat.getTimeInstance
(Calendar cal, int timeStyle, ULocale locale) Creates aDateFormat
object that can be used to format times in the calendar system specified bycal
.static final DateFormat
DateFormat.getTimeInstance
(Calendar cal, int timeStyle, Locale locale) Creates aDateFormat
object that can be used to format times in the calendar system specified bycal
.final StringBuffer
SimpleDateFormat.intervalFormatByAlgorithm
(Calendar fromCalendar, Calendar toCalendar, StringBuffer appendTo, FieldPosition pos) Deprecated.This API is ICU internal only.private int
SimpleDateFormat.matchAlphaMonthStrings
(String text, int start, String[] wideData, String[] shortData, Calendar cal) Deprecated.This API is ICU internal only.protected int
SimpleDateFormat.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 int
SimpleDateFormat.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.private int
SimpleDateFormat.matchString
(String text, int start, int field, String[] data, String monthPattern, Calendar cal) Deprecated.This API is ICU internal only.abstract void
DateFormat.parse
(String text, Calendar cal, ParsePosition pos) Parses a date/time string according to the given parse position.void
SimpleDateFormat.parse
(String text, Calendar cal, ParsePosition parsePos) Overrides DateFormatvoid
DateFormat.setCalendar
(Calendar newCalendar) Sets the calendar to be used by this date format.protected void
ChineseDateFormat.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 String
SimpleDateFormat.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 String
SimpleDateFormat.subFormat
(char ch, int count, int beginOffset, FieldPosition pos, DateFormatSymbols fmtData, Calendar cal) Formats a single field, given its pattern character.protected void
SimpleDateFormat.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 int
ChineseDateFormat.subParse
(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal) Deprecated.ICU 50protected int
SimpleDateFormat.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
.private int
SimpleDateFormat.subParse
(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal, MessageFormat numericLeapMonthFormatter, Output<TimeZoneFormat.TimeType> tzTimeType) Overloading to provide default argument (null) for day period.private int
SimpleDateFormat.subParse
(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal, MessageFormat numericLeapMonthFormatter, Output<TimeZoneFormat.TimeType> tzTimeType, Output<DayPeriodRules.DayPeriod> dayPeriod) Deprecated.This API is ICU internal only.Method parameters in com.ibm.icu.text with type arguments of type CalendarModifier and TypeMethodDescriptionstatic ResourceBundle
DateFormatSymbols.getDateFormatBundle
(Class<? extends Calendar> calendarClass, ULocale locale) Deprecated.ICU 4.0static ResourceBundle
DateFormatSymbols.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 theDateFormatSymbols
object that should be used to format a calendar system's dates in the given locale.DateFormatSymbols
(Calendar cal, Locale locale) Returns theDateFormatSymbols
object that should be used to format a calendar system's dates in the given locale.private
SimpleDateFormat
(String pattern, DateFormatSymbols formatData, Calendar calendar, NumberFormat numberFormat, ULocale locale, boolean useFastFormat, String override) (package private)
SimpleDateFormat
(String pattern, DateFormatSymbols formatData, Calendar calendar, ULocale locale, boolean useFastFormat, String override) Package-private constructor that allows a subclass to specify whether it supports fast formatting.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 TypeClassDescriptionclass
BuddhistCalendar
is a subclass ofGregorianCalendar
that numbers years since the birth of the Buddha.(package private) class
Base class for EthiopicCalendar and CopticCalendar.class
ChineseCalendar
is a concrete subclass ofCalendar
that implements a traditional Chinese calendar.final class
Implement the Coptic calendar system.class
Deprecated.This API is ICU internal only.final class
Implement the Ethiopic calendar system.class
.class
HebrewCalendar
is a subclass ofCalendar
that that implements the traditional Hebrew calendar.class
IndianCalendar
is a subclass ofGregorianCalendar
that numbers years since the birth of the Buddha.class
IslamicCalendar
is a subclass ofCalendar
that that implements the Islamic civil and religious calendars.class
JapaneseCalendar
is a subclass ofGregorianCalendar
that numbers years and eras based on the reigns of the Japanese emperors.class
Deprecated.This API is ICU internal only.class
TaiwanCalendar
is a subclass ofGregorianCalendar
that numbers years since 1912.Fields in com.ibm.icu.util declared as CalendarModifier and TypeFieldDescriptionprivate Calendar
Calendar.FormatConfiguration.cal
Deprecated.private Calendar
GlobalizationPreferences.calendar
private Calendar
SimpleDateRule.calendar
Methods in com.ibm.icu.util that return CalendarModifier and TypeMethodDescriptionprivate static Calendar
Calendar.createInstance
(ULocale locale) Calendar.FormatConfiguration.getCalendar()
Deprecated.This API is ICU internal only.GlobalizationPreferences.getCalendar()
Get a copy of the calendar according to the settings.static Calendar
Calendar.getInstance()
Returns a calendar using the default time zone and locale.static Calendar
Calendar.getInstance
(TimeZone zone) Returns a calendar using the specified time zone and default locale.static Calendar
Calendar.getInstance
(TimeZone zone, ULocale locale) Returns a calendar with the specified time zone and locale.static Calendar
Calendar.getInstance
(TimeZone zone, Locale aLocale) Returns a calendar with the specified time zone and locale.static Calendar
Calendar.getInstance
(ULocale locale) Returns a calendar using the default time zone and specified locale.static Calendar
Calendar.getInstance
(Locale aLocale) Returns a calendar using the default time zone and specified locale.private static Calendar
Calendar.getInstanceInternal
(TimeZone tz, ULocale locale) protected Calendar
GlobalizationPreferences.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 TypeMethodDescriptionint
Compares the times (in millis) represented by twoCalendar
objects.private Date
SimpleDateRule.computeInYear
(int year, Calendar c) private static DateFormat
Calendar.formatHelper
(Calendar cal, ULocale loc, int dateStyle, int timeStyle) static String
Calendar.getDateAtTimePattern
(Calendar cal, ULocale uLocale, int dateStyle) Deprecated.This API is ICU internal only.static String
Calendar.getDateTimePattern
(Calendar cal, ULocale uLocale, int dateStyle) Deprecated.This API is ICU internal only.boolean
Calendar.isEquivalentTo
(Calendar other) Returns true if the given Calendar object is equivalent to this one.boolean
GregorianCalendar.isEquivalentTo
(Calendar other) Returns true if the given Calendar object is equivalent to this one.private static Calendar.PatternData
GlobalizationPreferences.setCalendar
(Calendar calendar) Sets the calendar.Constructors in com.ibm.icu.util with parameters of type CalendarModifierConstructorDescription(package private)
SimpleDateRule
(int month, int dayOfMonth, Calendar cal)