Package | Description |
---|---|
java.time |
The main API for dates, times, instants, and durations.
|
java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
java.time.format |
Provides classes to print and parse dates and times.
|
Modifier and Type | Method | Description |
---|---|---|
String |
DayOfWeek.getDisplayName(TextStyle style,
Locale locale) |
Gets the textual representation, such as 'Mon' or 'Friday'.
|
String |
Month.getDisplayName(TextStyle style,
Locale locale) |
Gets the textual representation, such as 'Jan' or 'December'.
|
String |
ZoneId.getDisplayName(TextStyle style,
Locale locale) |
Gets the textual representation of the zone, such as 'British Time' or
'+02:00'.
|
Modifier and Type | Method | Description |
---|---|---|
default String |
Chronology.getDisplayName(TextStyle style,
Locale locale) |
Gets the textual representation of this chronology.
|
default String |
Era.getDisplayName(TextStyle style,
Locale locale) |
Gets the textual representation of this era.
|
String |
JapaneseEra.getDisplayName(TextStyle style,
Locale locale) |
Gets the textual representation of this era.
|
Modifier and Type | Method | Description |
---|---|---|
TextStyle |
TextStyle.asNormal() |
Returns the normal style with the same size.
|
TextStyle |
TextStyle.asStandalone() |
Returns the stand-alone style with the same size.
|
static TextStyle |
TextStyle.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static TextStyle[] |
TextStyle.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendChronologyText(TextStyle textStyle) |
Appends the chronology name to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendGenericZoneText(TextStyle textStyle) |
Appends the generic time-zone name, such as 'Pacific Time', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendGenericZoneText(TextStyle textStyle,
Set<ZoneId> preferredZones) |
Appends the generic time-zone name, such as 'Pacific Time', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLocalizedOffset(TextStyle style) |
Appends the localized zone offset, such as 'GMT+01:00', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendText(TemporalField field,
TextStyle textStyle) |
Appends the text of a date-time field to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendZoneText(TextStyle textStyle) |
Appends the time-zone name, such as 'British Summer Time', to the formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendZoneText(TextStyle textStyle,
Set<ZoneId> preferredZones) |
Appends the time-zone name, such as 'British Summer Time', to the formatter.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps