| Package | Description |
|---|---|
| org.threeten.bp |
The main API for dates, times, instants, and durations.
|
| org.threeten.bp.chrono |
Support for calendar systems other than the default ISO.
|
| org.threeten.bp.format |
Provides classes to print and parse dates and times.
|
| org.threeten.bp.jdk8 |
Simulates JDK 8 features on JDK 7.
|
| org.threeten.bp.temporal |
Access to date and time using fields and units.
|
| Modifier and Type | Field | Description |
|---|---|---|
static TemporalQuery<DayOfWeek> |
DayOfWeek.FROM |
Simulate JDK 8 method reference DayOfWeek::from.
|
static TemporalQuery<Instant> |
Instant.FROM |
Simulate JDK 8 method reference Instant::from.
|
static TemporalQuery<LocalDate> |
LocalDate.FROM |
Simulate JDK 8 method reference LocalDate::from.
|
static TemporalQuery<LocalDateTime> |
LocalDateTime.FROM |
Simulate JDK 8 method reference LocalDateTime::from.
|
static TemporalQuery<LocalTime> |
LocalTime.FROM |
Simulate JDK 8 method reference LocalTime::from.
|
static TemporalQuery<Month> |
Month.FROM |
Simulate JDK 8 method reference Month::from.
|
static TemporalQuery<MonthDay> |
MonthDay.FROM |
Simulate JDK 8 method reference MonthDay::from.
|
static TemporalQuery<OffsetDateTime> |
OffsetDateTime.FROM |
Simulate JDK 8 method reference OffsetDateTime::from.
|
static TemporalQuery<OffsetTime> |
OffsetTime.FROM |
Simulate JDK 8 method reference OffsetTime::from.
|
static TemporalQuery<Year> |
Year.FROM |
Simulate JDK 8 method reference Year::from.
|
static TemporalQuery<YearMonth> |
YearMonth.FROM |
Simulate JDK 8 method reference YearMonth::from.
|
static TemporalQuery<ZonedDateTime> |
ZonedDateTime.FROM |
Simulate JDK 8 method reference ZonedDateTime::from.
|
static TemporalQuery<ZoneId> |
ZoneId.FROM |
Simulate JDK 8 method reference ZoneId::from.
|
static TemporalQuery<ZoneOffset> |
ZoneOffset.FROM |
Simulate JDK 8 method reference ZoneOffset::from.
|
| Modifier and Type | Method | Description |
|---|---|---|
<R> R |
DayOfWeek.query(TemporalQuery<R> query) |
Queries this day-of-week using the specified query.
|
<R> R |
Instant.query(TemporalQuery<R> query) |
Queries this instant using the specified query.
|
<R> R |
LocalDate.query(TemporalQuery<R> query) |
Queries this date using the specified query.
|
<R> R |
LocalDateTime.query(TemporalQuery<R> query) |
Queries this date-time using the specified query.
|
<R> R |
LocalTime.query(TemporalQuery<R> query) |
Queries this time using the specified query.
|
<R> R |
Month.query(TemporalQuery<R> query) |
Queries this month-of-year using the specified query.
|
<R> R |
MonthDay.query(TemporalQuery<R> query) |
Queries this month-day using the specified query.
|
<R> R |
OffsetDateTime.query(TemporalQuery<R> query) |
Queries this date-time using the specified query.
|
<R> R |
OffsetTime.query(TemporalQuery<R> query) |
Queries this time using the specified query.
|
<R> R |
Year.query(TemporalQuery<R> query) |
Queries this year using the specified query.
|
<R> R |
YearMonth.query(TemporalQuery<R> query) |
Queries this year-month using the specified query.
|
<R> R |
ZonedDateTime.query(TemporalQuery<R> query) |
Queries this date-time using the specified query.
|
<R> R |
ZoneOffset.query(TemporalQuery<R> query) |
Queries this offset using the specified query.
|
| Modifier and Type | Field | Description |
|---|---|---|
static TemporalQuery<Chronology> |
Chronology.FROM |
Simulate JDK 8 method reference Chronology::from.
|
| Modifier and Type | Method | Description |
|---|---|---|
<R> R |
ChronoLocalDate.query(TemporalQuery<R> query) |
|
<R> R |
ChronoLocalDateTime.query(TemporalQuery<R> query) |
|
<R> R |
ChronoZonedDateTime.query(TemporalQuery<R> query) |
|
<R> R |
HijrahEra.query(TemporalQuery<R> query) |
|
<R> R |
IsoEra.query(TemporalQuery<R> query) |
|
<R> R |
MinguoEra.query(TemporalQuery<R> query) |
|
<R> R |
ThaiBuddhistEra.query(TemporalQuery<R> query) |
| Modifier and Type | Method | Description |
|---|---|---|
static TemporalQuery<Period> |
DateTimeFormatter.parsedExcessDays() |
A query that provides access to the excess days that were parsed.
|
static TemporalQuery<java.lang.Boolean> |
DateTimeFormatter.parsedLeapSecond() |
A query that provides access to whether a leap-second was parsed.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
DateTimeFormatter.parse(java.lang.CharSequence text,
TemporalQuery<T> type) |
Fully parses the text producing an object of the specified type.
|
TemporalAccessor |
DateTimeFormatter.parseBest(java.lang.CharSequence text,
TemporalQuery<?>... types) |
Fully parses the text producing an object of one of the specified types.
|
java.text.Format |
DateTimeFormatter.toFormat(TemporalQuery<?> query) |
Returns this formatter as a
java.text.Format instance that will
parse to the specified type. |
| Modifier and Type | Method | Description |
|---|---|---|
<R> R |
DefaultInterfaceEra.query(TemporalQuery<R> query) |
|
<R> R |
DefaultInterfaceTemporalAccessor.query(TemporalQuery<R> query) |
| Modifier and Type | Method | Description |
|---|---|---|
static TemporalQuery<Chronology> |
TemporalQueries.chronology() |
A query for the
Chronology. |
static TemporalQuery<LocalDate> |
TemporalQueries.localDate() |
A query for
LocalDate returning null if not found. |
static TemporalQuery<LocalTime> |
TemporalQueries.localTime() |
A query for
LocalTime returning null if not found. |
static TemporalQuery<ZoneOffset> |
TemporalQueries.offset() |
A query for
ZoneOffset returning null if not found. |
static TemporalQuery<TemporalUnit> |
TemporalQueries.precision() |
A query for the smallest supported unit.
|
static TemporalQuery<ZoneId> |
TemporalQueries.zone() |
A lenient query for the
ZoneId, falling back to the ZoneOffset. |
static TemporalQuery<ZoneId> |
TemporalQueries.zoneId() |
A strict query for the
ZoneId. |
| Modifier and Type | Method | Description |
|---|---|---|
<R> R |
TemporalAccessor.query(TemporalQuery<R> query) |
Queries this date-time.
|
Copyright © 2007–2018 ThreeTen.org. All rights reserved.