Java.Time.Temporal Namespace

Provides date and time fields, units, adjustments, queries, and week definitions.

Classes

Name Description
ChronoField

A standard set of fields.

ChronoUnit

A standard set of date periods units.

IsoFields

Fields and units specific to the ISO-8601 calendar system, including quarter-of-year and week-based-year.

JulianFields

A set of date fields that provide access to Julian Days.

TemporalAdjusters

Common and useful TemporalAdjusters.

TemporalQueries

Common implementations of TemporalQuery.

UnsupportedTemporalTypeException

UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class.

ValueRange

The range of valid values for a date-time field.

WeekFields

Localized definitions of the day-of-week, week-of-month and week-of-year fields.

Interfaces

Name Description
ITemporal

Framework-level interface defining read-write access to a temporal object, such as a date, time, offset or some combination of these.

ITemporalAccessor

Framework-level interface defining read-only access to a temporal object, such as a date, time, offset or some combination of these.

ITemporalAdjuster

Strategy for adjusting a temporal object.

ITemporalAmount

Framework-level interface defining an amount of time, such as "6 hours", "8 days" or "2 years and 3 months".

ITemporalField

A field of date-time, such as month-of-year or minute-of-hour.

ITemporalQuery

Strategy for querying a temporal object.

ITemporalUnit

A unit of date-time, such as Days or Hours.

Remarks

Use ITemporalAccessor to read fields and ITemporal to adjust dates and times. ChronoField and ChronoUnit define standard fields and units. TemporalAdjusters and TemporalQueries provide common adjustments and queries.

WeekFields defines localized week rules. IsoFields provides ISO quarter and week-based-year fields. JulianFields provides day counts based on the local date.

Source for the namespace overview.