Package | Description |
---|---|
java.time.calendar |
Support for calendar systems other than the default ISO.
|
java.time.format |
Provides classes to print and parse dates and times.
|
java.time.temporal |
Access to date and time using fields and units, additional value type classes and
base support for calendar systems other than the default ISO.
|
Modifier and Type | Class and Description |
---|---|
class |
HijrahChrono
The Hijrah calendar system.
|
class |
JapaneseChrono
The Japanese Imperial calendar system.
|
class |
MinguoChrono
The Minguo calendar system.
|
class |
ThaiBuddhistChrono
The Thai Buddhist calendar system.
|
Modifier and Type | Method and Description |
---|---|
Chrono<?> |
DateTimeFormatter.getChrono()
Gets the overriding chronology to be used during formatting.
|
Modifier and Type | Method and Description |
---|---|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLocalized(FormatStyle dateStyle,
FormatStyle timeStyle,
Chrono<?> chrono)
Appends a localized date-time pattern to the formatter.
|
DateTimeFormatter |
DateTimeFormatter.withChrono(Chrono chrono)
Returns a copy of this formatter with a new override chronology.
|
Constructor and Description |
---|
DateTimeBuilder(ZoneId zone,
Chrono<?> chrono)
Creates a new instance of the builder.
|
Modifier and Type | Class and Description |
---|---|
class |
Chrono<C extends Chrono<C>>
A calendar system, used to organize and identify dates.
|
interface |
ChronoLocalDate<C extends Chrono<C>>
A date without time-of-day or time-zone in an arbitrary chronology, intended
for advanced globalization use cases.
|
interface |
ChronoLocalDateTime<C extends Chrono<C>>
A date-time without a time-zone in an arbitrary chronology, intended
for advanced globalization use cases.
|
interface |
ChronoZonedDateTime<C extends Chrono<C>>
A date-time with a time-zone in an arbitrary chronology,
intended for advanced globalization use cases.
|
interface |
Era<C extends Chrono<C>>
An era of the time-line.
|
Modifier and Type | Class and Description |
---|---|
class |
ISOChrono
The ISO calendar system.
|
Modifier and Type | Method and Description |
---|---|
static <R extends Chrono<R>> |
Chrono.dateTime(ChronoLocalDate<R> date,
LocalTime time)
Obtains a local date-time from the a date and time.
|
Modifier and Type | Method and Description |
---|---|
static Chrono<?> |
Chrono.from(TemporalAccessor temporal)
Obtains an instance of
Chrono from a temporal object. |
static Chrono<?> |
Chrono.of(java.lang.String id)
Obtains an instance of
Chrono from a chronology ID or
calendar system type. |
static Chrono<?> |
Chrono.ofLocale(java.util.Locale locale)
Obtains an instance of
Chrono from a locale. |
Modifier and Type | Method and Description |
---|---|
static TemporalQuery<Chrono<?>> |
Queries.chrono()
A query for the
Chrono . |
static java.util.Set<Chrono<?>> |
Chrono.getAvailableChronologies()
Returns the available chronologies.
|
Modifier and Type | Method and Description |
---|---|
int |
Chrono.compareTo(Chrono<?> other)
Compares this chronology to another chronology.
|