Package javax.time.calendar
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Interface Summary Interface Description Calendrical Provides access in a uniform way to calendrical values.CalendricalMatcher Strategy for matching against a calendrical.DateAdjuster Strategy for adjusting a date.DateProvider Provides access to a date in the ISO-8601 calendar system.DateResolver Strategy for resolving an invalid year-month-day to a valid one.DateTimeProvider Provides access to a date-time in the ISO-8601 calendar system.PeriodProvider Provides access to a period of time, such as '2 Years and 5 Months'.TimeAdjuster Strategy for adjusting a time.TimeProvider Provides access to a time in the ISO-8601 calendar system. -
Class Summary Class Description CalendricalContext Context for aspects of date-time calculations that frequently change.CalendricalMatchers Provides common implementations ofCalendricalMatcher
.CalendricalMerger Stateful class used to merge calendrical information.CalendricalRule<T> A rule defining how a single well-defined calendrical element operates.Chronology A calendar system, consisting of rules controlling the passage of human-scale time.Clock A clock providing access to the current date and time.DateAdjusters Provides common implementations ofDateAdjuster
.DateResolvers Provides common implementations ofDateResolver
.DateTimeFieldRule<T> The rule defining how a measurable field of time operates.DateTimeFieldRule.TextStore The mapping between integer values and textual representations.DateTimeFields A set of date-time fields.ISOChronology The ISO-8601 calendar system, which follows the rules of the current de facto world calendar.LocalDate A date without a time-zone in the ISO-8601 calendar system, such as2007-12-03
.LocalDateTime A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.LocalTime A time without time-zone in the ISO-8601 calendar system, such as10:15:30
.LocalTime.Overflow The result of addition to aLocalTime
allowing the expression of any overflow in days.MonthDay A month-day in the ISO-8601 calendar system, such as--12-03
.OffsetDate A date with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03+01:00
.OffsetDateTime A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.OffsetTime A time with a zone offset from UTC in the ISO-8601 calendar system, such as10:15:30+01:00
.Period An immutable period consisting of the ISO-8601 year, month, day, hour, minute, second and nanosecond units, such as '3 Months, 4 Days and 7 Hours'.PeriodField A period of time measured using a single unit, such as '3 Days' or '65 Seconds'.PeriodFields A period of time measured using a number of different units, such as '3 Months, 4 Days and 7 Hours'.PeriodUnit A unit of time for measuring a period, such as 'Days' or 'Minutes'.TimeZone A time-zone representing the set of rules by which the zone offset varies through the year and historically.Year A year in the ISO-8601 calendar system, such as2007
.YearMonth A year-month in the ISO-8601 calendar system, such as2007-12
.ZonedDateTime A date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris
.ZoneOffset A time-zone offset from UTC, such as+02:00
.ZoneResolver Strategy for resolving aLocalDateTime
to anOffsetDateTime
using the rules of the time-zone.ZoneResolvers Provides common implementations ofZoneResolver
. -
Enum Summary Enum Description AmPmOfDay A half-day before or after midday, with the values 'AM' and 'PM'.DayOfWeek A day-of-week, such as 'Tuesday'.MonthOfYear A month-of-year, such as 'July'.QuarterOfYear A quarter-of-year, such as 'Q2'. -
Exception Summary Exception Description CalendarConversionException An exception used when conversion of a calendrical date-time object fails.CalendricalRuleException An exception used when an exception is connected to a specified rule.IllegalCalendarFieldValueException An exception used when a value specified for a calendrical field is out of range.InvalidCalendarFieldException An exception used when a calendrical field is invalid.UnsupportedRuleException An exception used when the value for a rule cannot be found.