Spec-Zone .ru
спецификации, руководства, описания, API
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
LocalDate
A date without a time-zone in the ISO-8601 calendar system,
such as
2007-12-03 . |
Modifier and Type | Method and Description |
---|---|
int |
LocalDate.compareTo(ChronoLocalDate<?> other)
Compares this date to another date.
|
boolean |
LocalDate.isAfter(ChronoLocalDate<?> other)
Checks if this date is after the specified date.
|
boolean |
LocalDate.isBefore(ChronoLocalDate<?> other)
Checks if this date is before the specified date.
|
boolean |
LocalDate.isEqual(ChronoLocalDate<?> other)
Checks if this date is equal to the specified date.
|
Period |
LocalDate.periodUntil(ChronoLocalDate<?> endDate)
Calculates the period between this date and another date as a
Period . |
Modifier and Type | Interface and Description |
---|---|
interface |
ChronoLocalDate<D extends ChronoLocalDate<D>>
A date without time-of-day or time-zone in an arbitrary chronology, intended
for advanced globalization use cases.
|
interface |
ChronoLocalDateTime<D extends ChronoLocalDate<D>>
A date-time without a time-zone in an arbitrary chronology, intended
for advanced globalization use cases.
|
interface |
ChronoZonedDateTime<D extends ChronoLocalDate<D>>
A date-time with a time-zone in an arbitrary chronology,
intended for advanced globalization use cases.
|
Modifier and Type | Class and Description |
---|---|
class |
HijrahDate
A date in the Hijrah calendar system.
|
class |
JapaneseDate
A date in the Japanese Imperial calendar system.
|
class |
MinguoDate
A date in the Minguo calendar system.
|
class |
ThaiBuddhistDate
A date in the Thai Buddhist calendar system.
|
Modifier and Type | Method and Description |
---|---|
ChronoLocalDate<?> |
Chronology.date(Era era,
int yearOfEra,
int month,
int dayOfMonth)
Obtains a local date in this chronology from the era, year-of-era,
month-of-year and day-of-month fields.
|
abstract ChronoLocalDate<?> |
Chronology.date(int prolepticYear,
int month,
int dayOfMonth)
Obtains a local date in this chronology from the proleptic-year,
month-of-year and day-of-month fields.
|
abstract ChronoLocalDate<?> |
Chronology.date(TemporalAccessor temporal)
Obtains a local date in this chronology from another temporal object.
|
abstract ChronoLocalDate<?> |
Chronology.dateEpochDay(long epochDay)
Obtains a local date in this chronology from the epoch-day.
|
ChronoLocalDate<?> |
Chronology.dateNow()
Obtains the current local date in this chronology from the system clock in the default time-zone.
|
ChronoLocalDate<?> |
Chronology.dateNow(Clock clock)
Obtains the current local date in this chronology from the specified clock.
|
ChronoLocalDate<?> |
Chronology.dateNow(ZoneId zone)
Obtains the current local date in this chronology from the system clock in the specified time-zone.
|
ChronoLocalDate<?> |
Chronology.dateYearDay(Era era,
int yearOfEra,
int dayOfYear)
Obtains a local date in this chronology from the era, year-of-era and
day-of-year fields.
|
abstract ChronoLocalDate<?> |
Chronology.dateYearDay(int prolepticYear,
int dayOfYear)
Obtains a local date in this chronology from the proleptic-year and
day-of-year fields.
|
static ChronoLocalDate<?> |
ChronoLocalDate.from(TemporalAccessor temporal)
Obtains an instance of
ChronoLocalDate from a temporal object. |
ChronoLocalDate<?> |
Chronology.resolveDate(Map<TemporalField,Long> fieldValues,
ResolverStyle resolverStyle)
Resolves parsed
ChronoField values into a date during parsing. |
Modifier and Type | Method and Description |
---|---|
static Comparator<ChronoLocalDate<?>> |
ChronoLocalDate.timeLineOrder()
Gets a comparator that compares
ChronoLocalDate in
time-line order ignoring the chronology. |
Modifier and Type | Method and Description |
---|---|
default int |
ChronoLocalDate.compareTo(ChronoLocalDate<?> other)
Compares this date to another date, including the chronology.
|
default boolean |
ChronoLocalDate.isAfter(ChronoLocalDate<?> other)
Checks if this date is after the specified date ignoring the chronology.
|
default boolean |
ChronoLocalDate.isBefore(ChronoLocalDate<?> other)
Checks if this date is before the specified date ignoring the chronology.
|
default boolean |
ChronoLocalDate.isEqual(ChronoLocalDate<?> other)
Checks if this date is equal to the specified date ignoring the chronology.
|
Period |
ThaiBuddhistDate.periodUntil(ChronoLocalDate<?> endDate) |
Period |
ChronoLocalDate.periodUntil(ChronoLocalDate<?> endDate)
Calculates the period between this date and another date as a
Period . |
Period |
JapaneseDate.periodUntil(ChronoLocalDate<?> endDate) |
Period |
HijrahDate.periodUntil(ChronoLocalDate<?> endDate) |
Period |
MinguoDate.periodUntil(ChronoLocalDate<?> endDate) |
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, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b92