| Package | Description |
|---|---|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.chrono |
Support for calendar systems other than the default ISO.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| java.time.jdk8 |
Simulates JDK 8 features on JDK 7.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
ZoneId.getDisplayName(TextStyle style,
java.util.Locale locale)
Gets the textual representation of the zone, such as 'British Time' or
'+02:00'.
|
java.lang.String |
Month.getDisplayName(TextStyle style,
java.util.Locale locale)
Gets the textual representation, such as 'Jan' or 'December'.
|
java.lang.String |
DayOfWeek.getDisplayName(TextStyle style,
java.util.Locale locale)
Gets the textual representation, such as 'Mon' or 'Friday'.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
ThaiBuddhistEra.getDisplayName(TextStyle style,
java.util.Locale locale) |
java.lang.String |
MinguoEra.getDisplayName(TextStyle style,
java.util.Locale locale) |
java.lang.String |
IsoEra.getDisplayName(TextStyle style,
java.util.Locale locale) |
java.lang.String |
HijrahEra.getDisplayName(TextStyle style,
java.util.Locale locale) |
java.lang.String |
Era.getDisplayName(TextStyle style,
java.util.Locale locale)
Gets the textual representation of this era.
|
java.lang.String |
Chronology.getDisplayName(TextStyle style,
java.util.Locale locale)
Gets the textual representation of this chronology.
|
| Modifier and Type | Method and Description |
|---|---|
TextStyle |
TextStyle.asNormal()
Converts the style to the equivalent normal style.
|
TextStyle |
TextStyle.asStandalone()
Converts the style to the equivalent stand-alone style.
|
static TextStyle |
TextStyle.valueOf(java.lang.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 and Description |
|---|---|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendChronologyText(TextStyle textStyle)
Appends the chronology ID, such as 'ISO' or 'ThaiBuddhist', 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,
java.util.Set<ZoneId> preferredZones)
Appends the time-zone name, such as 'British Summer Time', to the formatter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
DefaultInterfaceEra.getDisplayName(TextStyle style,
java.util.Locale locale) |
Copyright © 2014. All Rights Reserved.