Uses of Interface
java.time.temporal.TemporalAccessor
| 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.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| java.time.temporal |
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 TemporalAccessor Modifier and Type Class Description classDayOfWeekA day-of-week, such as 'Tuesday'.classInstantAn instantaneous point on the time-line.classLocalDateA date without a time-zone in the ISO-8601 calendar system, such as2007-12-03.classLocalDateTimeA date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30.classLocalTimeA time without a time-zone in the ISO-8601 calendar system, such as10:15:30.classMonthA month-of-year, such as 'July'.classMonthDayA month-day in the ISO-8601 calendar system, such as--12-03.classOffsetDateTimeA date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00.classOffsetTimeA time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as10:15:30+01:00.classYearA year in the ISO-8601 calendar system, such as2007.classYearMonthA year-month in the ISO-8601 calendar system, such as2007-12.classZonedDateTimeA date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris.classZoneOffsetA time-zone offset from Greenwich/UTC, such as+02:00.Methods in java.time with parameters of type TemporalAccessor Modifier and Type Method Description static 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.chrono Modifier and Type Interface Description interfaceChronoLocalDateA 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.interfaceEraAn era of the time-line.Classes in java.time.chrono that implement TemporalAccessor Modifier and Type Class Description classHijrahDateA date in the Hijrah calendar system.classHijrahEraAn era in the Hijrah calendar system.classIsoEraAn era in the ISO calendar system.classJapaneseDateA date in the Japanese Imperial calendar system.classJapaneseEraAn era in the Japanese Imperial calendar system.classMinguoDateA date in the Minguo calendar system.classMinguoEraAn era in the Minguo calendar system.classThaiBuddhistDateA date in the Thai Buddhist calendar system.classThaiBuddhistEraAn era in the Thai Buddhist calendar system.Methods in java.time.chrono with parameters of type TemporalAccessor Modifier and Type Method Description ChronoLocalDateChronology. date(TemporalAccessor temporal)Obtains a local date in this chronology from another temporal object.HijrahDateHijrahChronology. date(TemporalAccessor temporal)LocalDateIsoChronology. date(TemporalAccessor temporal)Obtains an ISO local date from another date-time object.JapaneseDateJapaneseChronology. date(TemporalAccessor temporal)MinguoDateMinguoChronology. date(TemporalAccessor temporal)ThaiBuddhistDateThaiBuddhistChronology. 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.ChronoLocalDateTime<HijrahDate>HijrahChronology. localDateTime(TemporalAccessor temporal)LocalDateTimeIsoChronology. localDateTime(TemporalAccessor temporal)Obtains an ISO local date-time from another date-time object.ChronoLocalDateTime<JapaneseDate>JapaneseChronology. localDateTime(TemporalAccessor temporal)ChronoLocalDateTime<MinguoDate>MinguoChronology. localDateTime(TemporalAccessor temporal)ChronoLocalDateTime<ThaiBuddhistDate>ThaiBuddhistChronology. localDateTime(TemporalAccessor temporal)default ChronoZonedDateTime<? extends ChronoLocalDate>Chronology. zonedDateTime(TemporalAccessor temporal)Obtains aChronoZonedDateTimein this chronology from another temporal object.ChronoZonedDateTime<HijrahDate>HijrahChronology. zonedDateTime(TemporalAccessor temporal)ZonedDateTimeIsoChronology. zonedDateTime(TemporalAccessor temporal)Obtains an ISO zoned date-time from another date-time object.ChronoZonedDateTime<JapaneseDate>JapaneseChronology. zonedDateTime(TemporalAccessor temporal)ChronoZonedDateTime<MinguoDate>MinguoChronology. zonedDateTime(TemporalAccessor temporal)ChronoZonedDateTime<ThaiBuddhistDate>ThaiBuddhistChronology. zonedDateTime(TemporalAccessor temporal) -
Uses of TemporalAccessor in java.time.format
Methods in java.time.format that return TemporalAccessor Modifier and Type Method Description TemporalAccessorDateTimeFormatter. parse(CharSequence text)Fully parses the text producing a temporal object.TemporalAccessorDateTimeFormatter. parse(CharSequence text, ParsePosition position)Parses the text using this formatter, providing control over the text position.TemporalAccessorDateTimeFormatter. parseBest(CharSequence text, TemporalQuery<?>... queries)Fully parses the text producing an object of one of the specified types.TemporalAccessorDateTimeFormatter. 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 TemporalAccessor Modifier and Type Method Description StringDateTimeFormatter. 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.temporal Modifier and Type Interface Description interfaceTemporalFramework-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 TemporalAccessor Modifier and Type Method Description default 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 TemporalAccessor Modifier and Type Method Description longTemporalField. getFrom(TemporalAccessor temporal)Gets the value of this field from the specified temporal object.booleanTemporalField. isSupportedBy(TemporalAccessor temporal)Checks if this field is supported by the temporal object.RTemporalQuery. queryFrom(TemporalAccessor temporal)Queries the specified temporal object.ValueRangeTemporalField. 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.