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 and Description |
---|---|
String |
ZoneId.getDisplayName(TextStyle style,
Locale locale)
Gets the textual representation of the zone, such as 'British Time' or
'+02:00'.
|
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'.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 and Description |
---|---|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendChronologyText(TextStyle textStyle)
Appends the chronology name 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. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.