Uses of Interface
java.time.temporal.TemporalQuery
Package
Description
The main API for dates, times, instants, and durations.
Generic API for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units, and date time adjusters.
-
Uses of TemporalQuery in java.time
Modifier and TypeMethodDescription<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. -
Uses of TemporalQuery in java.time.chrono
Modifier and TypeMethodDescriptiondefault <R> R
ChronoLocalDate.query
(TemporalQuery<R> query) Queries this date using the specified query.default <R> R
ChronoLocalDateTime.query
(TemporalQuery<R> query) Queries this date-time using the specified query.default <R> R
ChronoZonedDateTime.query
(TemporalQuery<R> query) Queries this date-time using the specified query.default <R> R
Era.query
(TemporalQuery<R> query) Queries this era using the specified query. -
Uses of TemporalQuery in java.time.format
Modifier and TypeMethodDescriptionstatic final TemporalQuery
<Period> DateTimeFormatter.parsedExcessDays()
A query that provides access to the excess days that were parsed.static final TemporalQuery
<Boolean> DateTimeFormatter.parsedLeapSecond()
A query that provides access to whether a leap-second was parsed.Modifier and TypeMethodDescription<T> T
DateTimeFormatter.parse
(CharSequence text, TemporalQuery<T> query) Fully parses the text producing an object of the specified type.DateTimeFormatter.parseBest
(CharSequence text, TemporalQuery<?>... queries) Fully parses the text producing an object of one of the specified types.DateTimeFormatter.toFormat
(TemporalQuery<?> parseQuery) Returns this formatter as ajava.text.Format
instance that will parse using the specified query. -
Uses of TemporalQuery in java.time.temporal
Modifier and TypeMethodDescriptionstatic TemporalQuery
<Chronology> TemporalQueries.chronology()
A query for theChronology
.static TemporalQuery
<LocalDate> TemporalQueries.localDate()
A query forLocalDate
returning null if not found.static TemporalQuery
<LocalTime> TemporalQueries.localTime()
A query forLocalTime
returning null if not found.static TemporalQuery
<ZoneOffset> TemporalQueries.offset()
A query forZoneOffset
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 theZoneId
, falling back to theZoneOffset
.static TemporalQuery
<ZoneId> TemporalQueries.zoneId()
A strict query for theZoneId
.Modifier and TypeMethodDescriptiondefault <R> R
TemporalAccessor.query
(TemporalQuery<R> query) Queries this date-time.