Uses of Interface
java.time.temporal.TemporalAccessor
Packages that use 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
Classes in java.time that implement TemporalAccessorModifier and TypeClassDescriptionenumA day-of-week, such as 'Tuesday'.final classAn instantaneous point on the time-line.final classA date without a time-zone in the ISO-8601 calendar system, such as2007-12-03.final classA date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30.final classA time without a time-zone in the ISO-8601 calendar system, such as10:15:30.enumA month-of-year, such as 'July'.final classA month-day in the ISO-8601 calendar system, such as--12-03.final classA date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00.final classA time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as10:15:30+01:00.final classA year in the ISO-8601 calendar system, such as2007.final classA year-month in the ISO-8601 calendar system, such as2007-12.final classA date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris.final classA time-zone offset from Greenwich/UTC, such as+02:00.Methods in java.time with parameters of type TemporalAccessorModifier and TypeMethodDescriptionstatic DayOfWeekDayOfWeek.from(TemporalAccessor temporal) Obtains an instance ofDayOfWeekfrom a temporal object.static InstantInstant.from(TemporalAccessor temporal) Obtains an instance ofInstantfrom a temporal object.static LocalDateLocalDate.from(TemporalAccessor temporal) Obtains an instance ofLocalDatefrom a temporal object.static LocalDateTimeLocalDateTime.from(TemporalAccessor temporal) Obtains an instance ofLocalDateTimefrom a temporal object.static LocalTimeLocalTime.from(TemporalAccessor temporal) Obtains an instance ofLocalTimefrom a temporal object.static MonthMonth.from(TemporalAccessor temporal) Obtains an instance ofMonthfrom a temporal object.static MonthDayMonthDay.from(TemporalAccessor temporal) Obtains an instance ofMonthDayfrom a temporal object.static OffsetDateTimeOffsetDateTime.from(TemporalAccessor temporal) Obtains an instance ofOffsetDateTimefrom a temporal object.static OffsetTimeOffsetTime.from(TemporalAccessor temporal) Obtains an instance ofOffsetTimefrom a temporal object.static YearYear.from(TemporalAccessor temporal) Obtains an instance ofYearfrom a temporal object.static YearMonthYearMonth.from(TemporalAccessor temporal) Obtains an instance ofYearMonthfrom a temporal object.static ZonedDateTimeZonedDateTime.from(TemporalAccessor temporal) Obtains an instance ofZonedDateTimefrom a temporal object.static ZoneIdZoneId.from(TemporalAccessor temporal) Obtains an instance ofZoneIdfrom a temporal object.static ZoneOffsetZoneOffset.from(TemporalAccessor temporal) Obtains an instance ofZoneOffsetfrom a temporal object. -
Uses of TemporalAccessor in java.time.chrono
Subinterfaces of TemporalAccessor in java.time.chronoModifier and TypeInterfaceDescriptioninterfaceA date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceChronoLocalDateTime<D extends ChronoLocalDate>A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceChronoZonedDateTime<D extends ChronoLocalDate>A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceAn era of the time-line.Classes in java.time.chrono that implement TemporalAccessorModifier and TypeClassDescriptionfinal classA date in the Hijrah calendar system.enumAn era in the Hijrah calendar system.enumAn era in the ISO calendar system.final classA date in the Japanese Imperial calendar system.final classAn era in the Japanese Imperial calendar system.final classA date in the Minguo calendar system.enumAn era in the Minguo calendar system.final classA date in the Thai Buddhist calendar system.enumAn era in the Thai Buddhist calendar system.Methods in java.time.chrono with parameters of type TemporalAccessorModifier 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 ChronoLocalDateChronoLocalDate.from(TemporalAccessor temporal) Obtains an instance ofChronoLocalDatefrom a temporal object.static ChronoLocalDateTime<?>ChronoLocalDateTime.from(TemporalAccessor temporal) Obtains an instance ofChronoLocalDateTimefrom a temporal object.static ChronologyChronology.from(TemporalAccessor temporal) Obtains an instance ofChronologyfrom a temporal object.static ChronoZonedDateTime<?>ChronoZonedDateTime.from(TemporalAccessor temporal) Obtains an instance ofChronoZonedDateTimefrom a temporal object.static HijrahDateHijrahDate.from(TemporalAccessor temporal) Obtains aHijrahDateof the Islamic Umm Al-Qura calendar from a temporal object.static JapaneseDateJapaneseDate.from(TemporalAccessor temporal) Obtains aJapaneseDatefrom a temporal object.static MinguoDateMinguoDate.from(TemporalAccessor temporal) Obtains aMinguoDatefrom a temporal object.static ThaiBuddhistDateThaiBuddhistDate.from(TemporalAccessor temporal) Obtains aThaiBuddhistDatefrom 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 aChronoZonedDateTimein 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
Methods in java.time.format that return TemporalAccessorModifier 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.Methods in java.time.format with parameters of type TemporalAccessorModifier and TypeMethodDescriptionDateTimeFormatter.format(TemporalAccessor temporal) Formats a date-time object using this formatter.voidDateTimeFormatter.formatTo(TemporalAccessor temporal, Appendable appendable) Formats a date-time object to anAppendableusing this formatter. -
Uses of TemporalAccessor in java.time.temporal
Subinterfaces of TemporalAccessor in java.time.temporalModifier and TypeInterfaceDescriptioninterfaceFramework-level interface defining read-write access to a temporal object, such as a date, time, offset or some combination of these.Methods in java.time.temporal that return TemporalAccessorModifier and TypeMethodDescriptiondefault TemporalAccessorTemporalField.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) Resolves this field to provide a simpler alternative or a date.Methods in java.time.temporal with parameters of type TemporalAccessorModifier and TypeMethodDescriptionlongChronoField.getFrom(TemporalAccessor temporal) longTemporalField.getFrom(TemporalAccessor temporal) Gets the value of this field from the specified temporal object.booleanChronoField.isSupportedBy(TemporalAccessor temporal) booleanTemporalField.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 TemporalAccessorTemporalField.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) Resolves this field to provide a simpler alternative or a date.