abstract java.lang.StringBuffer |
DateFormat.format(Calendar cal,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition fieldPosition) |
Formats a date into a date/time string.
|
java.lang.StringBuffer |
DateIntervalFormat.format(Calendar fromCalendar,
Calendar toCalendar,
java.lang.StringBuffer appendTo,
java.text.FieldPosition pos) |
Format 2 Calendars to produce a string.
|
java.lang.StringBuffer |
SimpleDateFormat.format(Calendar cal,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos) |
Formats a date or time, which is the standard millis
since January 1, 1970, 00:00:00 GMT.
|
DateIntervalFormat.FormattedDateInterval |
DateIntervalFormat.formatToValue(Calendar fromCalendar,
Calendar toCalendar) |
Format 2 Calendars to produce a FormattedDateInterval.
|
static java.util.ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
ULocale locale) |
Deprecated.
|
static java.util.ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
java.util.Locale locale) |
Deprecated.
|
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,
ULocale 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,
java.util.Locale 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,
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(Calendar cal,
int dateStyle,
int timeStyle,
java.util.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.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,
ULocale locale) |
Returns a date/time formatter that uses the SHORT style
for both the date and the time.
|
static DateFormat |
DateFormat.getInstance(Calendar cal,
java.util.Locale locale) |
Returns a date/time formatter that uses the SHORT style
for both the date and the time.
|
static DateFormat |
DateFormat.getInstanceForSkeleton(Calendar cal,
java.lang.String skeleton,
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.getInstanceForSkeleton(Calendar cal,
java.lang.String skeleton,
java.util.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.getPatternInstance(Calendar cal,
java.lang.String skeleton,
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.getPatternInstance(Calendar cal,
java.lang.String skeleton,
java.util.Locale locale) |
Creates a DateFormat object that can be used to format dates and
times in the calendar system specified by cal .
|
java.lang.String |
DateIntervalFormat.getPatterns(Calendar fromCalendar,
Calendar toCalendar,
Output<java.lang.String> part2) |
Deprecated.
|
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,
ULocale 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,
java.util.Locale locale) |
Creates a DateFormat object that can be used to format times in
the calendar system specified by cal .
|
java.lang.StringBuffer |
SimpleDateFormat.intervalFormatByAlgorithm(Calendar fromCalendar,
Calendar toCalendar,
java.lang.StringBuffer appendTo,
java.text.FieldPosition pos) |
Deprecated.
|
protected int |
SimpleDateFormat.matchQuarterString(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 quarter
strings.
|
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.
|
abstract void |
DateFormat.parse(java.lang.String text,
Calendar cal,
java.text.ParsePosition pos) |
Parses a date/time string according to the given parse position.
|
void |
SimpleDateFormat.parse(java.lang.String text,
Calendar cal,
java.text.ParsePosition parsePos) |
Overrides DateFormat
|
void |
DateFormat.setCalendar(Calendar newCalendar) |
Sets the calendar to be used by this date format.
|
protected void |
ChineseDateFormat.subFormat(java.lang.StringBuffer buf,
char ch,
int count,
int beginOffset,
int fieldNum,
DisplayContext capitalizationContext,
java.text.FieldPosition pos,
char patternCharToOutput,
Calendar cal) |
Deprecated.
|
protected java.lang.String |
SimpleDateFormat.subFormat(char ch,
int count,
int beginOffset,
int fieldNum,
DisplayContext capitalizationContext,
java.text.FieldPosition pos,
char patternCharToOutput,
Calendar cal) |
Deprecated.
|
protected java.lang.String |
SimpleDateFormat.subFormat(char ch,
int count,
int beginOffset,
java.text.FieldPosition pos,
DateFormatSymbols fmtData,
Calendar cal) |
Formats a single field, given its pattern character.
|
protected void |
SimpleDateFormat.subFormat(java.lang.StringBuffer buf,
char ch,
int count,
int beginOffset,
int fieldNum,
DisplayContext capitalizationContext,
java.text.FieldPosition pos,
char patternCharToOutput,
Calendar cal) |
Deprecated.
|
protected int |
ChineseDateFormat.subParse(java.lang.String text,
int start,
char ch,
int count,
boolean obeyCount,
boolean allowNegative,
boolean[] ambiguousYear,
Calendar cal) |
Deprecated.
|
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 .
|