Package | Description |
---|---|
java.text |
Modifier and Type | Field and Description |
---|---|
static DateFormat.Field |
DateFormat.Field.AM_PM
Marks the time indicator part of a date.
|
static DateFormat.Field |
DateFormat.Field.DAY_OF_MONTH
Marks the day of the month part of a date.
|
static DateFormat.Field |
DateFormat.Field.DAY_OF_WEEK
Marks the day of the week part of a date.
|
static DateFormat.Field |
DateFormat.Field.DAY_OF_WEEK_IN_MONTH
Marks the day of the week in the month part of a date.
|
static DateFormat.Field |
DateFormat.Field.DAY_OF_YEAR
Marks the day of the year part of a date.
|
static DateFormat.Field |
DateFormat.Field.ERA
Marks the era part of a date.
|
static DateFormat.Field |
DateFormat.Field.HOUR_OF_DAY0
Marks the hour of the day part of a date (0-11).
|
static DateFormat.Field |
DateFormat.Field.HOUR_OF_DAY1
Marks the hour of the day part of a date (1-12).
|
static DateFormat.Field |
DateFormat.Field.HOUR0
Marks the hour part of a date (0-11).
|
static DateFormat.Field |
DateFormat.Field.HOUR1
Marks the hour part of a date (1-12).
|
static DateFormat.Field |
DateFormat.Field.MILLISECOND
Marks the millisecond part of a time.
|
static DateFormat.Field |
DateFormat.Field.MINUTE
Marks the minute part of a time.
|
static DateFormat.Field |
DateFormat.Field.MONTH
Marks the month part of a date.
|
static DateFormat.Field |
DateFormat.Field.SECOND
Marks the second part of a time.
|
static DateFormat.Field |
DateFormat.Field.TIME_ZONE
Marks the time zone part of a date.
|
static DateFormat.Field |
DateFormat.Field.WEEK_OF_MONTH
Marks the week of the month part of a date.
|
static DateFormat.Field |
DateFormat.Field.WEEK_OF_YEAR
Marks the week of the year part of a date.
|
static DateFormat.Field |
DateFormat.Field.YEAR
Marks the year part of a date.
|
Modifier and Type | Method and Description |
---|---|
static DateFormat.Field |
DateFormat.Field.ofCalendarField(int calendarField)
Returns the
DateFormat.Field instance for the given calendar
field. |