|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Calendar | |
com.ibm.icu.text | 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. |
com.ibm.icu.util | International calendars and other utility classes. |
Uses of Calendar in com.ibm.icu.text |
Fields in com.ibm.icu.text declared as Calendar | |
protected Calendar |
DateFormat.calendar
The calendar that DateFormat uses to produce the time field
values needed to implement date and time formatting. |
Methods in com.ibm.icu.text that return Calendar | |
Calendar |
DateFormat.getCalendar()
Gets the calendar associated with this date/time formatter. |
Methods in com.ibm.icu.text with parameters of type Calendar | |
protected void |
ChineseDateFormat.subFormat(java.lang.StringBuffer buf,
char ch,
int count,
int beginOffset,
java.text.FieldPosition pos,
Calendar cal)
|
protected int |
ChineseDateFormat.subParse(java.lang.String text,
int start,
char ch,
int count,
boolean obeyCount,
boolean allowNegative,
boolean[] ambiguousYear,
Calendar cal)
|
abstract java.lang.StringBuffer |
DateFormat.format(Calendar cal,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition fieldPosition)
Formats a date into a date/time string. |
abstract void |
DateFormat.parse(java.lang.String text,
Calendar cal,
java.text.ParsePosition pos)
Parse a date/time string according to the given parse position. |
void |
DateFormat.setCalendar(Calendar newCalendar)
Set the calendar to be used by this date format. |
static DateFormat |
DateFormat.getDateInstance(Calendar cal,
int dateStyle,
java.util.Locale locale)
Create a DateFormat object that can be used to format dates in
the calendar system specified by cal .
|
static DateFormat |
DateFormat.getDateInstance(Calendar cal,
int dateStyle,
ULocale locale)
Create a DateFormat object that can be used to format dates in
the calendar system specified by cal .
|
static DateFormat |
DateFormat.getTimeInstance(Calendar cal,
int timeStyle,
java.util.Locale locale)
Create a DateFormat object that can be used to format times in
the calendar system specified by cal .
|
static DateFormat |
DateFormat.getTimeInstance(Calendar cal,
int timeStyle,
ULocale locale)
Create a DateFormat object that can be used to format times in
the calendar system specified by cal .
|
static DateFormat |
DateFormat.getDateTimeInstance(Calendar cal,
int dateStyle,
int timeStyle,
java.util.Locale locale)
Create a DateFormat object that can be used to format dates and times in
the calendar system specified by cal .
|
static DateFormat |
DateFormat.getDateTimeInstance(Calendar cal,
int dateStyle,
int timeStyle,
ULocale locale)
Create a DateFormat object that can be used to format dates and times in
the calendar system specified by cal .
|
static DateFormat |
DateFormat.getInstance(Calendar cal,
java.util.Locale locale)
Convenience overload |
static DateFormat |
DateFormat.getInstance(Calendar cal,
ULocale locale)
Convenience overload |
static DateFormat |
DateFormat.getInstance(Calendar cal)
Convenience overload |
static DateFormat |
DateFormat.getDateInstance(Calendar cal,
int dateStyle)
Convenience overload |
static DateFormat |
DateFormat.getTimeInstance(Calendar cal,
int timeStyle)
Convenience overload |
static DateFormat |
DateFormat.getDateTimeInstance(Calendar cal,
int dateStyle,
int timeStyle)
Convenience overload |
static java.util.ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
java.util.Locale locale)
Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class. |
static java.util.ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
ULocale locale)
Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class. |
java.lang.StringBuffer |
SimpleDateFormat.format(Calendar cal,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Overrides DateFormat. |
protected java.lang.String |
SimpleDateFormat.subFormat(char ch,
int count,
int beginOffset,
java.text.FieldPosition pos,
DateFormatSymbols formatData,
Calendar cal)
Format a single field, given its pattern character. |
protected void |
SimpleDateFormat.subFormat(java.lang.StringBuffer buf,
char ch,
int count,
int beginOffset,
java.text.FieldPosition pos,
Calendar cal)
Format a single field; useFastFormat variant. |
void |
SimpleDateFormat.parse(java.lang.String text,
Calendar cal,
java.text.ParsePosition parsePos)
Overrides DateFormat |
protected int |
SimpleDateFormat.matchString(java.lang.String text,
int start,
int field,
java.lang.String[] data,
Calendar cal)
Attempt to match the text at a given position against an array of strings. |
protected int |
SimpleDateFormat.subParse(java.lang.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 in cal . |
Constructors in com.ibm.icu.text with parameters of type Calendar | |
ChineseDateFormatSymbols(Calendar cal,
java.util.Locale locale)
Construct a ChineseDateFormatSymbols for the provided calendar and locale. |
|
ChineseDateFormatSymbols(Calendar cal,
ULocale locale)
Construct a ChineseDateFormatSymbols for the provided calendar and locale. |
|
DateFormatSymbols(Calendar cal,
java.util.Locale locale)
Get the DateFormatSymbols object that should be used to format a
calendar system's dates in the given locale.
|
|
DateFormatSymbols(Calendar cal,
ULocale locale)
Get the DateFormatSymbols object that should be used to format a
calendar system's dates in the given locale.
|
Uses of Calendar in com.ibm.icu.util |
Subclasses of Calendar in com.ibm.icu.util | |
class |
BuddhistCalendar
BuddhistCalendar is a subclass of GregorianCalendar
that numbers years since the birth of the Buddha. |
(package private) class |
com.ibm.icu.util.CECalendar
Base class for EthiopicCalendar and CopticCalendar. |
class |
ChineseCalendar
ChineseCalendar is a concrete subclass of Calendar
that implements a traditional Chinese calendar. |
class |
CopticCalendar
Implement the Coptic calendar system. |
class |
EthiopicCalendar
Implement the Ethiopic calendar system. |
class |
GregorianCalendar
GregorianCalendar is a concrete subclass of
Calendar
and provides the standard calendar used by most of the world.
|
class |
HebrewCalendar
HebrewCalendar is a subclass of Calendar
that that implements the traditional Hebrew calendar.
|
class |
IslamicCalendar
IslamicCalendar is a subclass of Calendar
that that implements the Islamic civil and religious calendars. |
class |
JapaneseCalendar
JapaneseCalendar is a subclass of GregorianCalendar
that numbers years and eras based on the reigns of the Japanese emperors.
|
Methods in com.ibm.icu.util that return Calendar | |
static Calendar |
Calendar.getInstance()
Gets a calendar using the default time zone and locale. |
static Calendar |
Calendar.getInstance(TimeZone zone)
Gets a calendar using the specified time zone and default locale. |
static Calendar |
Calendar.getInstance(java.util.Locale aLocale)
Gets a calendar using the default time zone and specified locale. |
static Calendar |
Calendar.getInstance(ULocale locale)
Gets a calendar using the default time zone and specified locale. |
static Calendar |
Calendar.getInstance(TimeZone zone,
java.util.Locale aLocale)
Gets a calendar with the specified time zone and locale. |
static Calendar |
Calendar.getInstance(TimeZone zone,
ULocale locale)
Gets a calendar with the specified time zone and locale. |
Calendar |
GlobalizationPreferences.getCalendar()
Deprecated. This API is ICU internal only. |
protected Calendar |
GlobalizationPreferences.guessCalendar()
Deprecated. This API is ICU internal only. |
Methods in com.ibm.icu.util with parameters of type Calendar | |
boolean |
Calendar.isEquivalentTo(Calendar other)
Returns true if the given Calendar object is equivalent to this one. |
int |
Calendar.compareTo(Calendar that)
Compares the times (in millis) represented by two Calendar objects. |
GlobalizationPreferences |
GlobalizationPreferences.setCalendar(Calendar calendar)
Deprecated. This API is ICU internal only. |
boolean |
GregorianCalendar.isEquivalentTo(Calendar other)
Returns true if the given Calendar object is equivalent to this one. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |