Uses of Interface
java.time.temporal.TemporalAccessor
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 TemporalAccessor in java.time
Modifier and TypeClassDescriptionenum
A day-of-week, such as 'Tuesday'.final class
An instantaneous point on the time-line.final class
A date without a time-zone in the ISO-8601 calendar system, such as2007-12-03
.final class
A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.final class
A time without a time-zone in the ISO-8601 calendar system, such as10:15:30
.enum
A month-of-year, such as 'July'.final class
A month-day in the ISO-8601 calendar system, such as--12-03
.final class
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.final class
A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as10:15:30+01:00
.final class
A year in the ISO-8601 calendar system, such as2007
.final class
A year-month in the ISO-8601 calendar system, such as2007-12
.final class
A date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris
.final class
A time-zone offset from Greenwich/UTC, such as+02:00
.Modifier and TypeMethodDescriptionstatic DayOfWeek
DayOfWeek.from
(TemporalAccessor temporal) Obtains an instance ofDayOfWeek
from a temporal object.static Instant
Instant.from
(TemporalAccessor temporal) Obtains an instance ofInstant
from a temporal object.static LocalDate
LocalDate.from
(TemporalAccessor temporal) Obtains an instance ofLocalDate
from a temporal object.static LocalDateTime
LocalDateTime.from
(TemporalAccessor temporal) Obtains an instance ofLocalDateTime
from a temporal object.static LocalTime
LocalTime.from
(TemporalAccessor temporal) Obtains an instance ofLocalTime
from a temporal object.static Month
Month.from
(TemporalAccessor temporal) Obtains an instance ofMonth
from a temporal object.static MonthDay
MonthDay.from
(TemporalAccessor temporal) Obtains an instance ofMonthDay
from a temporal object.static OffsetDateTime
OffsetDateTime.from
(TemporalAccessor temporal) Obtains an instance ofOffsetDateTime
from a temporal object.static OffsetTime
OffsetTime.from
(TemporalAccessor temporal) Obtains an instance ofOffsetTime
from a temporal object.static Year
Year.from
(TemporalAccessor temporal) Obtains an instance ofYear
from a temporal object.static YearMonth
YearMonth.from
(TemporalAccessor temporal) Obtains an instance ofYearMonth
from a temporal object.static ZonedDateTime
ZonedDateTime.from
(TemporalAccessor temporal) Obtains an instance ofZonedDateTime
from a temporal object.static ZoneId
ZoneId.from
(TemporalAccessor temporal) Obtains an instance ofZoneId
from a temporal object.static ZoneOffset
ZoneOffset.from
(TemporalAccessor temporal) Obtains an instance ofZoneOffset
from a temporal object. -
Uses of TemporalAccessor in java.time.chrono
Modifier and TypeInterfaceDescriptioninterface
A date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases.interface
ChronoLocalDateTime<D extends ChronoLocalDate>
A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases.interface
ChronoZonedDateTime<D extends ChronoLocalDate>
A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.interface
An era of the time-line.Modifier and TypeClassDescriptionfinal class
A date in the Hijrah calendar system.enum
An era in the Hijrah calendar system.enum
An era in the ISO calendar system.final class
A date in the Japanese Imperial calendar system.final class
An era in the Japanese Imperial calendar system.final class
A date in the Minguo calendar system.enum
An era in the Minguo calendar system.final class
A date in the Thai Buddhist calendar system.enum
An era in the Thai Buddhist calendar system.Modifier and TypeMethodDescriptionChronology.date
(TemporalAccessor temporal) Obtains a local date in this chronology from another temporal object.HijrahChronology.date
(TemporalAccessor temporal) IsoChronology.date
(TemporalAccessor temporal) Obtains an ISO local date from another date-time object.JapaneseChronology.date
(TemporalAccessor temporal) MinguoChronology.date
(TemporalAccessor temporal) ThaiBuddhistChronology.date
(TemporalAccessor temporal) static ChronoLocalDate
ChronoLocalDate.from
(TemporalAccessor temporal) Obtains an instance ofChronoLocalDate
from a temporal object.static ChronoLocalDateTime
<?> ChronoLocalDateTime.from
(TemporalAccessor temporal) Obtains an instance ofChronoLocalDateTime
from a temporal object.static Chronology
Chronology.from
(TemporalAccessor temporal) Obtains an instance ofChronology
from a temporal object.static ChronoZonedDateTime
<?> ChronoZonedDateTime.from
(TemporalAccessor temporal) Obtains an instance ofChronoZonedDateTime
from a temporal object.static HijrahDate
HijrahDate.from
(TemporalAccessor temporal) Obtains aHijrahDate
of the Islamic Umm Al-Qura calendar from a temporal object.static JapaneseDate
JapaneseDate.from
(TemporalAccessor temporal) Obtains aJapaneseDate
from a temporal object.static MinguoDate
MinguoDate.from
(TemporalAccessor temporal) Obtains aMinguoDate
from a temporal object.static ThaiBuddhistDate
ThaiBuddhistDate.from
(TemporalAccessor temporal) Obtains aThaiBuddhistDate
from a temporal object.default ChronoLocalDateTime
<? extends ChronoLocalDate> Chronology.localDateTime
(TemporalAccessor temporal) Obtains a local date-time in this chronology from another temporal object.HijrahChronology.localDateTime
(TemporalAccessor temporal) IsoChronology.localDateTime
(TemporalAccessor temporal) Obtains an ISO local date-time from another date-time object.JapaneseChronology.localDateTime
(TemporalAccessor temporal) MinguoChronology.localDateTime
(TemporalAccessor temporal) ThaiBuddhistChronology.localDateTime
(TemporalAccessor temporal) default ChronoZonedDateTime
<? extends ChronoLocalDate> Chronology.zonedDateTime
(TemporalAccessor temporal) Obtains aChronoZonedDateTime
in this chronology from another temporal object.HijrahChronology.zonedDateTime
(TemporalAccessor temporal) IsoChronology.zonedDateTime
(TemporalAccessor temporal) Obtains an ISO zoned date-time from another date-time object.JapaneseChronology.zonedDateTime
(TemporalAccessor temporal) MinguoChronology.zonedDateTime
(TemporalAccessor temporal) ThaiBuddhistChronology.zonedDateTime
(TemporalAccessor temporal) -
Uses of TemporalAccessor in java.time.format
Modifier and TypeMethodDescriptionDateTimeFormatter.parse
(CharSequence text) Fully parses the text producing a temporal object.DateTimeFormatter.parse
(CharSequence text, ParsePosition position) Parses the text using this formatter, providing control over the text position.DateTimeFormatter.parseBest
(CharSequence text, TemporalQuery<?>... queries) Fully parses the text producing an object of one of the specified types.DateTimeFormatter.parseUnresolved
(CharSequence text, ParsePosition position) Parses the text using this formatter, without resolving the result, intended for advanced use cases.Modifier and TypeMethodDescriptionDateTimeFormatter.format
(TemporalAccessor temporal) Formats a date-time object using this formatter.void
DateTimeFormatter.formatTo
(TemporalAccessor temporal, Appendable appendable) Formats a date-time object to anAppendable
using this formatter. -
Uses of TemporalAccessor in java.time.temporal
Modifier and TypeInterfaceDescriptioninterface
Framework-level interface defining read-write access to a temporal object, such as a date, time, offset or some combination of these.Modifier and TypeMethodDescriptiondefault TemporalAccessor
TemporalField.resolve
(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) Resolves this field to provide a simpler alternative or a date.Modifier and TypeMethodDescriptionlong
ChronoField.getFrom
(TemporalAccessor temporal) long
TemporalField.getFrom
(TemporalAccessor temporal) Gets the value of this field from the specified temporal object.boolean
ChronoField.isSupportedBy
(TemporalAccessor temporal) boolean
TemporalField.isSupportedBy
(TemporalAccessor temporal) Checks if this field is supported by the temporal object.TemporalQuery.queryFrom
(TemporalAccessor temporal) Queries the specified temporal object.ChronoField.rangeRefinedBy
(TemporalAccessor temporal) TemporalField.rangeRefinedBy
(TemporalAccessor temporal) Get the range of valid values for this field using the temporal object to refine the result.default TemporalAccessor
TemporalField.resolve
(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) Resolves this field to provide a simpler alternative or a date.