 |
static int AM_PM_FIELD
 |
Represents the AM_PM alignment field.
|
|
 |
protected Calendar calendar
 |
Represents the calendar that produces the time field values.
|
|
 |
static int DATE_FIELD
 |
Represents the DATE alignment field.
|
|
 |
static int DAY_OF_WEEK_FIELD
 |
Represents the DAY_OF_WEEK alignment field.
|
|
 |
static int DAY_OF_WEEK_IN_MONTH_FIELD
 |
Represents the DAY_OF_WEEK_IN_MONTH alignment field. |
|
 |
static int DAY_OF_YEAR_FIELD
 |
Represents the DAY_OF_YEAR alignment field. |
|
 |
static int DEFAULT
 |
Represents default style pattern. |
|
 |
static int ERA_FIELD
 |
Represents the ERA alignment field. |
|
 |
static int FULL
 |
Represents full style pattern. |
|
 |
static int HOUR_OF_DAY0_FIELD
 |
Represents the zero-based HOUR_OF_DAY alignment field. |
|
 |
static int HOUR_OF_DAY1_FIELD
 |
Represents the one-based HOUR_OF_DAY alignment field. |
|
 |
static int HOUR0_FIELD
 |
Represents the zero-based HOUR alignment field. |
|
 |
static int HOUR1_FIELD
 |
Represents the one-based HOUR alignment field. |
|
 |
static int LONG
Represents long style pattern.
 |
static int MEDIUM
Represents medium style pattern. |
|
 |
static int MILLISECOND_FIELD
 |
Represents the MILLISECOND alignment field. |
|
 |
static int MINUTE_FIELD
 |
Represents the MINUTE alignment field. |
|
 |
static int MONTH_FIELD
 |
Represents the MONTH alignment field. |
|
 |
protected NumberFormat numberFormat
 |
Represents the NumberFormat that formats date and time numbers. |
|
 |
static int SECOND_FIELD
 |
Represents the SECOND alignment field. |
|
 |
static int SHORT
 |
Represents short style pattern. |
|
 |
static int TIMEZONE_FIELD
 |
Represents the TIMEZONE alignment field. |
|
 |
static int WEEK_OF_MONTH_FIELD
 |
Represents the WEEK_OF_MONTH alignment field. |
|
 |
static int WEEK_OF_YEAR_FIELD
 |
Represents the WEEK_OF_YEAR alignment field. |
|
 |
static int YEAR_FIELD
 |
Represents the YEAR alignment field. |
|
 |
static Locale[] getAvailableLocales()
 |
Returns an array of possible DateFormat locales. |
|
 |
static DateFormat getDateInstance()
 |
Returns a DateFormat using the default date formatting style for the default
locale. |
|
 |
static DateFormat getDateInstance(int d)
 |
Returns a DateFormat using date formatting style d for the default locale. |
|
 |
static DateFormat getDateInstance(int d, Locale l)
 |
Returns a DateFormat using date formatting style d for locale l. |
|
 |
static DateFormat getDateTimeInstance()
 |
Returns a DateFormat using the default date and time formatting style for the
default locale. |
|
 |
static DateFormat getDateTimeInstance(int d, int t)
 |
Returns the DateFormat using date formatting style d and time formatting style t
for the default locale. |
|
 |
static DateFormat getDateTimeInstance(int d, int t, Locale l)
 |
Returns a DateFormat using date formatting style d and time formatting style t
for locale l.
|
|
 |
static DateFormat getInstance()
 |
Returns a DateFormat using the date and time SHORT formatting style for the
default locale. |
|
 |
static DateFormat getTimeInstance()
 |
Returns a DateFormat using the default time formatting style for the default
locale. |
|
 |
static DateFormat getTimeInstance(int t)
 |
Returns a DateFormat using time formatting style t for the default locale. |
|
 |
static DateFormat getTimeInstance(int t, Locale l)
 |
Returns a DateFormat using time formatting style t for locale l. |
|
 |
Object clone()
 |
Returns a new clone of this DateFormat. |
|
 |
boolean equals(Object v)
 |
Returns true if and only if v is an instance of DateFormat representing the same
date format value that this object represents. |
|
 |
String format(Date d)
 |
Formats date d into a date and time string using this DateFormat. |
|
 |
abstract StringBuffer format(Date d, StringBuffer s, FieldPosition f)
 |
Returns s after formatting date d into a date and time string into s using this DateFormat. If f indicates a field, then its indices are updated to reflect the
position of the field within s |
|
 |
final StringBuffer format(Object d, StringBuffer s, FieldPosition f)
 |
Returns s after formatting date d into a date and time string into s using this DateFormat. If f indicates a field, then its indices are updated to reflect the
position of the field within s. |
|
 |
Calendar getCalendar()
 |
Returns the calendar of this DateFormat. |
|
 |
NumberFormat getNumberFormat()
 |
Returns the number formatter of this DateFormat. |
|
 |
TimeZone getTimeZone()
 |
Returns the time zone of this DateFormat. |
|
 |
int hashCode()
 |
Returns the hash code of this DateFormat. |
|
 |
boolean isLenient()
 |
Returns whether this DateFormat parses dates and times leniently (i.e., whether
strings need not absolutely follow the date and time specification). |
|
 |
Date parse(String s)
 |
Parses s to produce a date using this DateFormat. |
|
 |
abstract Date parse(String s, ParsePosition i)
 |
Parses s to produce a date using this DateFormat. The parsing starts with the
parse position indicated by i. Upon completion of parsing, i reflects the last
parsed position. |
|
 |
Object parseObject(String s, ParsePosition i)
 |
Parses s to produce a date using this DateFormat. The parsing starts with the
parse position indicated by i. Upon completion of parsing, i reflects the last
parsed position. |
|
 |
void setCalendar(Calendar c)
 |
Sets to c the calendar used by this DateFormat. |
|
 |
void setLenient(boolean b)
 |
Sets whether date and time parsing is to be lenient by this DateFormat (i.e.,
whether strings need not absolutely follow the date and time specification). |
|
 |
void setNumberFormat(NumberFormat n)
 |
Sets to n the number formatter used by this DateFormat. |
|
 |
void setTimeZone(TimeZone t)
 |
Sets to t the time zone for the calendar used by this DateFormat.
|
|