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
.CalendricalMatchers.DayOfWeekInMonth Class implementing day-of-week in month matcher.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.Chronology.Rule Rule implementation.Clock A clock providing access to the current date and time.Clock.TimeSourceClock Implementation of a clock based on a time-source.DateAdjusters Provides common implementations ofDateAdjuster
.DateAdjusters.DayOfWeekInMonth Class implementing day-of-week in month adjuster.DateAdjusters.RelativeDayOfWeek Implementation of next, previous or current day-of-week.DateResolvers Provides common implementations ofDateResolver
.DateResolvers.NextValid Class implementing nextValid resolver.DateResolvers.PartLenient Class implementing partLenient resolver.DateResolvers.PreviousValid Class implementing previousValid resolver.DateResolvers.Strict Class implementing strict resolver.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.ISOChronology.AmPmOfDayRule Rule implementation.ISOChronology.DayOfWeekRule Rule implementation.ISOChronology.EpochDaysRule Rule implementation.ISOChronology.MonthOfYearRule Rule implementation.ISOChronology.NanoOfDayRule Rule implementation.ISOChronology.QuarterOfYearRule Rule implementation.ISOChronology.Rule Single rule subclass, which means fewer classes to load at startup.ISOChronology.Unit Single unit subclass, which means fewer classes to load at startup.LocalDate A date without a time-zone in the ISO-8601 calendar system, such as2007-12-03
.LocalDate.Rule Rule implementation.LocalDateTime A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.LocalDateTime.Rule Rule implementation.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.LocalTime.Rule Rule implementation.MonthDay A month-day in the ISO-8601 calendar system, such as--12-03
.MonthDay.Rule Rule implementation.OffsetDate A date with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03+01:00
.OffsetDate.Rule Rule implementation.OffsetDateTime A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.OffsetDateTime.Rule Rule implementation.OffsetTime A time with a zone offset from UTC in the ISO-8601 calendar system, such as10:15:30+01:00
.OffsetTime.Rule Rule implementation.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'.PeriodParser An period parser that creates an instance ofPeriod
from a string using the ISO8601 period formatPnYnMnDTnHnMn.nS
.PeriodParser.ParseValues Parse values container created for each parse.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.TimeZone.Fixed Fixed time-zone.TimeZone.ID ID based time-zone.TimeZone.Rule Rule implementation.Year A year in the ISO-8601 calendar system, such as2007
.YearMonth A year-month in the ISO-8601 calendar system, such as2007-12
.YearMonth.Rule Rule implementation.ZonedDateTime A date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris
.ZonedDateTime.Rule Rule implementation.ZoneOffset A time-zone offset from UTC, such as+02:00
.ZoneOffset.Rule Rule implementation.ZoneResolver Strategy for resolving aLocalDateTime
to anOffsetDateTime
using the rules of the time-zone.ZoneResolvers Provides common implementations ofZoneResolver
.ZoneResolvers.Combination Class implementing combination resolver.ZoneResolvers.PostGapPreOverlap Class implementing postGapPreOverlap resolver.ZoneResolvers.PostTransition Class implementing postTransition resolver.ZoneResolvers.PreTransition Class implementing preTransition resolver.ZoneResolvers.PushForward Class implementing push forward resolver.ZoneResolvers.RetainOffset Class implementing retain offset resolver.ZoneResolvers.Strict Class implementing strict resolver. -
Enum Summary Enum Description AmPmOfDay A half-day before or after midday, with the values 'AM' and 'PM'.CalendricalMatchers.Impl Enum implementing the adjusters.DateAdjusters.Impl Enum implementing the adjusters.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.