| Package | Description |
|---|---|
| com.ibm.icu.text | |
| com.ibm.icu.util |
| Modifier and Type | Class and Description |
|---|---|
class |
ChineseDateFormat
Deprecated.
ICU 50 Use SimpleDateFormat instead.
|
class |
SimpleDateFormat
[icu enhancement] ICU's replacement for
java.text.SimpleDateFormat. |
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
DateIntervalFormat.getDateFormat()
Gets the date formatter
|
static DateFormat |
DateFormat.getDateInstance()
Returns the date formatter with the default formatting style
for the default
FORMAT locale. |
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.getDateInstance(int style)
Returns the date formatter with the given formatting style
for the default
FORMAT locale. |
static DateFormat |
DateFormat.getDateInstance(int style,
Locale aLocale)
Returns the date formatter with the given formatting style
for the given locale.
|
static DateFormat |
DateFormat.getDateInstance(int style,
ULocale locale)
Returns the date formatter with the given formatting style
for the given locale.
|
static DateFormat |
DateFormat.getDateTimeInstance()
Returns the date/time formatter with the default formatting style
for the default
FORMAT locale. |
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.getDateTimeInstance(int dateStyle,
int timeStyle)
Returns the date/time formatter with the given date and time
formatting styles for the default
FORMAT locale. |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
Locale aLocale)
Returns the date/time formatter with the given formatting styles
for the given locale.
|
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
ULocale locale)
Returns the date/time formatter with the given formatting styles
for the given locale.
|
static DateFormat |
DateFormat.getInstance()
Returns a default date/time formatter that uses the SHORT style for both the
date and the time.
|
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.getInstanceForSkeleton(String skeleton)
[icu] Returns a
DateFormat object that can be used to format dates and times in
the default locale. |
static DateFormat |
DateFormat.getInstanceForSkeleton(String skeleton,
Locale locale)
[icu] Returns a
DateFormat object that can be used to format dates and times in
the given locale. |
static DateFormat |
DateFormat.getInstanceForSkeleton(String skeleton,
ULocale locale)
[icu] Returns a
DateFormat object that can be used to format dates and times in
the given locale. |
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. |
static DateFormat |
DateFormat.getPatternInstance(String skeleton)
[icu] Returns a
DateFormat object that can be used to format dates and times in
the default locale. |
static DateFormat |
DateFormat.getPatternInstance(String skeleton,
Locale locale)
[icu] Returns a
DateFormat object that can be used to format dates and times in
the given locale. |
static DateFormat |
DateFormat.getPatternInstance(String skeleton,
ULocale locale)
[icu] Returns a
DateFormat object that can be used to format dates and times in
the given locale. |
static DateFormat |
DateFormat.getTimeInstance()
Gets the time formatter with the default formatting style
for the default
FORMAT locale. |
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. |
static DateFormat |
DateFormat.getTimeInstance(int style)
Returns the time formatter with the given formatting style
for the default
FORMAT locale. |
static DateFormat |
DateFormat.getTimeInstance(int style,
Locale aLocale)
Returns the time formatter with the given formatting style
for the given locale.
|
static DateFormat |
DateFormat.getTimeInstance(int style,
ULocale locale)
Returns the time formatter with the given formatting style
for the given locale.
|
DateFormat |
DateFormat.setBooleanAttribute(DateFormat.BooleanAttribute key,
boolean value)
Sets a boolean attribute for this instance.
|
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
GlobalizationPreferences.getDateFormat(int dateStyle,
int timeStyle)
Gets a date format according to the current settings.
|
DateFormat |
Calendar.getDateTimeFormat(int dateStyle,
int timeStyle,
Locale loc)
[icu] Returns a
DateFormat appropriate to this calendar. |
DateFormat |
Calendar.getDateTimeFormat(int dateStyle,
int timeStyle,
ULocale loc)
[icu] Returns a
DateFormat appropriate to this calendar. |
protected DateFormat |
GlobalizationPreferences.guessDateFormat(int dateStyle,
int timeStyle)
This function can be overridden by subclasses to use different heuristics.
|
protected DateFormat |
Calendar.handleGetDateFormat(String pattern,
Locale locale)
Creates a
DateFormat appropriate to this calendar. |
protected DateFormat |
Calendar.handleGetDateFormat(String pattern,
String override,
Locale locale)
Creates a
DateFormat appropriate to this calendar. |
protected DateFormat |
ChineseCalendar.handleGetDateFormat(String pattern,
String override,
ULocale locale)
Creates a
DateFormat appropriate to this calendar. |
protected DateFormat |
Calendar.handleGetDateFormat(String pattern,
String override,
ULocale locale)
Creates a
DateFormat appropriate to this calendar. |
protected DateFormat |
Calendar.handleGetDateFormat(String pattern,
ULocale locale)
Creates a
DateFormat appropriate to this calendar. |
| Modifier and Type | Method and Description |
|---|---|
GlobalizationPreferences |
GlobalizationPreferences.setDateFormat(int dateStyle,
int timeStyle,
DateFormat format)
Set an explicit date format.
|
Copyright © 2016 Unicode, Inc. and others.