| Package | Description |
|---|---|
| com.ibm.icu.text | |
| com.ibm.icu.util |
| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
DateFormat.calendar
The calendar that
DateFormat uses to produce the time field
values needed to implement date and time formatting. |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
DateFormat.getCalendar()
Returns the calendar associated with this date/time formatter.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
DateIntervalFormat.format(Calendar fromCalendar,
Calendar toCalendar,
StringBuffer appendTo,
FieldPosition pos)
Format 2 Calendars to produce a string.
|
StringBuffer |
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.
|
abstract StringBuffer |
DateFormat.format(Calendar cal,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Formats a date into a date/time string.
|
DateIntervalFormat.FormattedDateInterval |
DateIntervalFormat.formatToValue(Calendar fromCalendar,
Calendar toCalendar)
Format 2 Calendars to produce a FormattedDateInterval.
|
static ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
Locale locale)
Deprecated.
ICU 4.0
|
static ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
ULocale locale)
Deprecated.
ICU 4.0
|
static DateFormat |
DateFormat.getDateInstance(Calendar cal,
int dateStyle)
Creates a
DateFormat object for the default locale that can be used
to format dates in the calendar system specified by cal. |
static DateFormat |
DateFormat.getDateInstance(Calendar cal,
int dateStyle,
Locale locale)
Creates 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)
Creates a
DateFormat object that can be used to format dates in
the calendar system specified by cal. |
static DateFormat |
DateFormat.getDateTimeInstance(Calendar cal,
int dateStyle,
int timeStyle)
Creates a
DateFormat object for the default locale 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,
Locale locale)
Creates 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)
Creates 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)
Returns a default date/time formatter that uses the SHORT style for both the
date and the time.
|
static 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 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 DateFormat |
DateFormat.getInstanceForSkeleton(Calendar cal,
String skeleton,
Locale locale)
[icu] Creates a
DateFormat object that can be used to format dates and
times in the calendar system specified by cal. |
static DateFormat |
DateFormat.getInstanceForSkeleton(Calendar cal,
String skeleton,
ULocale locale)
[icu] Creates a
DateFormat object that can be used to format dates and
times in the calendar system specified by cal. |
static DateFormat |
DateFormat.getPatternInstance(Calendar cal,
String skeleton,
Locale locale)
[icu] Creates a
DateFormat object that can be used to format dates and
times in the calendar system specified by cal. |
static DateFormat |
DateFormat.getPatternInstance(Calendar cal,
String skeleton,
ULocale locale)
[icu] Creates a
DateFormat object that can be used to format dates and
times in the calendar system specified by cal. |
String |
DateIntervalFormat.getPatterns(Calendar fromCalendar,
Calendar toCalendar,
Output<String> part2)
Deprecated.
This API is ICU internal only.
|
static DateFormat |
DateFormat.getTimeInstance(Calendar cal,
int timeStyle)
Creates 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,
Locale locale)
Creates 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)
Creates a
DateFormat object that can be used to format times in
the calendar system specified by cal. |
StringBuffer |
SimpleDateFormat.intervalFormatByAlgorithm(Calendar fromCalendar,
Calendar toCalendar,
StringBuffer appendTo,
FieldPosition pos)
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.
|
void |
SimpleDateFormat.parse(String text,
Calendar cal,
ParsePosition parsePos)
Overrides DateFormat
|
abstract void |
DateFormat.parse(String text,
Calendar cal,
ParsePosition pos)
Parses a date/time string according to the given parse position.
|
void |
DateFormat.setCalendar(Calendar newCalendar)
Sets the calendar to be used by this date format.
|
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 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 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 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 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 in
cal. |
protected int |
ChineseDateFormat.subParse(String text,
int start,
char ch,
int count,
boolean obeyCount,
boolean allowNegative,
boolean[] ambiguousYear,
Calendar cal)
Deprecated.
ICU 50
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Class<? extends Calendar> calendarClass,
Locale locale)
Deprecated.
ICU 4.0
|
static ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Class<? extends Calendar> calendarClass,
ULocale locale)
Deprecated.
ICU 4.0
|
| Constructor and Description |
|---|
ChineseDateFormatSymbols(Calendar cal,
Locale locale)
Deprecated.
ICU 50
|
ChineseDateFormatSymbols(Calendar cal,
ULocale locale)
Deprecated.
ICU 50
|
DateFormatSymbols(Calendar cal,
Locale locale)
Returns the
DateFormatSymbols object that should be used to format a
calendar system's dates in the given locale. |
DateFormatSymbols(Calendar cal,
ULocale locale)
Returns the
DateFormatSymbols object that should be used to format a
calendar system's dates in the given locale. |
| Constructor and Description |
|---|
DateFormatSymbols(Class<? extends Calendar> calendarClass,
Locale locale)
Variant of DateFormatSymbols(Calendar, Locale) that takes the Calendar class
instead of a Calendar instance.
|
DateFormatSymbols(Class<? extends Calendar> calendarClass,
ULocale locale)
Variant of DateFormatSymbols(Calendar, ULocale) that takes the Calendar class
instead of a Calendar instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BuddhistCalendar
BuddhistCalendar is a subclass of GregorianCalendar
that numbers years since the birth of the Buddha. |
class |
ChineseCalendar
ChineseCalendar is a concrete subclass of Calendar
that implements a traditional Chinese calendar. |
class |
CopticCalendar
Implement the Coptic calendar system.
|
class |
DangiCalendar
Deprecated.
This API is ICU internal only.
|
class |
EthiopicCalendar
Implement the Ethiopic calendar system.
|
class |
GregorianCalendar
[icu enhancement] ICU's replacement for
java.util.GregorianCalendar. |
class |
HebrewCalendar
HebrewCalendar is a subclass of Calendar
that that implements the traditional Hebrew calendar. |
class |
IndianCalendar
IndianCalendar is a subclass of GregorianCalendar
that numbers years since the birth of the Buddha. |
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. |
class |
PersianCalendar
Deprecated.
This API is ICU internal only.
|
class |
TaiwanCalendar
TaiwanCalendar is a subclass of GregorianCalendar
that numbers years since 1912. |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
GlobalizationPreferences.getCalendar()
Get a copy of the calendar according to the settings.
|
Calendar |
Calendar.FormatConfiguration.getCalendar()
Deprecated.
This API is ICU internal only.
|
static Calendar |
Calendar.getInstance()
Returns a calendar using the default time zone and locale.
|
static Calendar |
Calendar.getInstance(Locale aLocale)
Returns a calendar using the default time zone and specified locale.
|
static Calendar |
Calendar.getInstance(TimeZone zone)
Returns a calendar using the specified time zone and default locale.
|
static Calendar |
Calendar.getInstance(TimeZone zone,
Locale aLocale)
Returns a calendar with the specified time zone and locale.
|
static Calendar |
Calendar.getInstance(TimeZone zone,
ULocale locale)
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.
|
protected Calendar |
GlobalizationPreferences.guessCalendar()
This function can be overridden by subclasses to use different heuristics.
|
Calendar |
Calendar.setWeekData(Calendar.WeekData wdata)
[icu] Set data in this calendar based on the WeekData input.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Calendar.compareTo(Calendar that)
Compares the times (in millis) represented by two
Calendar objects. |
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 |
GregorianCalendar.isEquivalentTo(Calendar other)
Returns true if the given Calendar object is equivalent to this
one.
|
boolean |
Calendar.isEquivalentTo(Calendar other)
[icu] Returns true if the given Calendar object is equivalent to this
one.
|
GlobalizationPreferences |
GlobalizationPreferences.setCalendar(Calendar calendar)
Sets the calendar.
|
Copyright © 2016 Unicode, Inc. and others.