Uses of Class
net.time4j.engine.Chronology
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
Defines the common generic schemes and interfaces of chronological
systems.
Defines common interfaces for any format support of Time4J.
This package contains the expert-level format- and parse engine of Time4J.
Interval support.
-
Uses of Chronology in net.time4j
Modifier and TypeMethodDescriptionstatic <S> Chronology<S>
Provides a static access to the associated time axis using the foreign type S.static Chronology<AnnualDate>
AnnualDate.chronology()
Yields the associated chronology.static Chronology<MonthDay>
AnnualDate.threeten()
Obtains a bridge chronology for the typejava.time.MonthDay
.static Chronology<Instant>
Moment.threeten()
Obtains a bridge chronology for the typejava.time.Instant
.static Chronology<LocalDate>
PlainDate.threeten()
Obtains a bridge chronology for the typejava.time.LocalDate
.static Chronology<LocalTime>
PlainTime.threeten()
Obtains a bridge chronology for the typejava.time.LocalTime
.static Chronology<LocalDateTime>
PlainTimestamp.threeten()
Obtains a bridge chronology for the typejava.time.LocalDateTime
.Modifier and TypeMethodDescription<T extends ChronoEntity<T>>
TZonalClock.now(Chronology<T> chronology)
Gets the current timestamp in the associated timezone and given chronology.<C extends Calendrical<?, C>>
GeneralTimestamp<C>Moment.toGeneralTimestamp(Chronology<C> chronology, TZID tzid, StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone. -
Uses of Chronology in net.time4j.calendar
Modifier and TypeMethodDescriptionstatic <T extends ChronoEntity<T> & CalendarDate>
StdCalendarElement<Integer,T>CommonElements.boundedWeekOfMonth(Chronology<T> chronology, Weekmodel model)
Creates an integer element for the week of month in given chronology dependent on given week model and constrained by month boundaries.static <T extends ChronoEntity<T> & CalendarDate>
StdCalendarElement<Integer,T>CommonElements.boundedWeekOfYear(Chronology<T> chronology, Weekmodel model)
Creates an integer element for the week of year in given chronology dependent on given week model and constrained by year boundaries.static <D extends EastAsianCalendar<?, D>>
List<D>SolarTerm.list(int gregorianYear, Chronology<D> chronology)
Obtains a list of dates of all solar terms beginning with Lichun in spring of given gregorian year.static <T extends ChronoEntity<T> & CalendarDate>
StdCalendarElement<Weekday,T>CommonElements.localDayOfWeek(Chronology<T> chronology, Weekmodel model)
Defines an element for the weekday with a localized day number in the value range1-7
.static <T extends ChronoEntity<T> & CalendarDate>
StdCalendarElement<Integer,T>CommonElements.weekOfMonth(Chronology<T> chronology, Weekmodel model)
Creates an integer element for the week of month in given chronology dependent on given week model.static <T extends ChronoEntity<T> & CalendarDate>
StdCalendarElement<Integer,T>CommonElements.weekOfYear(Chronology<T> chronology, Weekmodel model)
Creates an integer element for the week of year in given chronology dependent on given week model. -
Uses of Chronology in net.time4j.engine
Modifier and TypeClassDescriptionclass
BridgeChronology<S,T extends ChronoEntity<T>>
Represents a foreign chronology which delegates formatting and parsing to a chronology in Time4J.class
CalendarFamily<T extends CalendarVariant<T>>
Represents a set of various calendar systems as members of a family.class
A time axis is a dynamic view on a chronology where a system of registered time units is used to define a time arithmetic for any time points belonging to this time axis respective chronology.Modifier and TypeMethodDescriptionChronology.Builder.build()
Finishes the build of a new chronology.static <T> Chronology<T>
Returns a typed singleton perChronoEntity
-class.Chronology<?>
BridgeChronology.preparser()
Chronology<?>
Chronology.preparser()
default Chronology<?>
ChronoMerger.preparser()
This method defines a child chronology which can preparse a chronological text.Modifier and TypeMethodDescriptionOptional<Chronology<? extends CalendarDate>>
CalendarProvider.findChronology(String name)
Obtains a suitable chronology for given name.Modifier and TypeMethodDescriptionstatic <T extends Calendrical<?, T>>
TCalendarDate.from(ChronoLocalDate threeten, Chronology<T> target)
Converts the calendar date corresponding toChronoLocalDate
in given target chronology.default <T extends Calendrical<?, T>>
TCalendarDate.transform(Chronology<T> target)
Converts this calendar date to the given target chronology based on the count of days relative to UTC epoch [1972-01-01].ModifierConstructorDescriptionBridgeChronology(Converter<S,T> converter, Chronology<T> delegate)
Constructs a new instance. -
Uses of Chronology in net.time4j.format
Modifier and TypeMethodDescriptionstatic CalendarText
CalendarText.getInstance(Chronology<?> chronology, Locale locale)
Returns an instance ofCalendarText
for given chronology and language.ModifierConstructorDescriptionBuilder(Chronology<?> chronology)
Constructor for determining the calendar type. -
Uses of Chronology in net.time4j.format.expert
Modifier and TypeMethodDescriptionChronology<?>
ChronoFormatter.Builder.getChronology()
Returns the calendar override if set else the associated chronology.ChronoFormatter.getChronology()
Returns the associated chronology.Modifier and TypeMethodDescriptionstatic <T> ChronoFormatter<T>
ChronoFormatter.ofPattern(String pattern, PatternType type, Locale locale, Chronology<T> chronology)
Constructs a pattern-based formatter for general chronologies.static <T extends LocalizedPatternSupport>
ChronoFormatter<T>ChronoFormatter.ofStyle(FormatStyle style, Locale locale, Chronology<T> chronology)
Constructs a style-based formatter for general chronologies.static <T extends LocalizedPatternSupport>
ChronoFormatter<T>ChronoFormatter.ofStyle(DisplayMode style, Locale locale, Chronology<T> chronology)
Deprecated.static <T> ChronoFormatter.Builder<T>
ChronoFormatter.setUp(Chronology<T> chronology, Locale locale)
Constructs a builder for creating formatters.static <C extends Calendrical<?, C>>
ChronoFormatter.Builder<Moment>ChronoFormatter.setUpWithOverride(Locale locale, Chronology<C> overrideCalendar)
Constructs a builder for creating global formatters with usage of given calendar type. -
Uses of Chronology in net.time4j.range
Modifier and TypeMethodDescriptionstatic Chronology<CalendarMonth>
CalendarMonth.chronology()
Yields the associated chronology.static Chronology<CalendarQuarter>
CalendarQuarter.chronology()
Yields the associated chronology.static Chronology<CalendarWeek>
CalendarWeek.chronology()
Yields the associated chronology.static Chronology<CalendarYear>
CalendarYear.chronology()
Yields the associated chronology.static Chronology<SpanOfWeekdays>
SpanOfWeekdays.chronology()
Yields the associated chronology.static Chronology<YearMonth>
CalendarMonth.threeten()
Obtains a bridge chronology for the typejava.time.YearMonth
.static Chronology<Year>
CalendarYear.threeten()
Obtains a bridge chronology for the typejava.time.Year
.
ChronoFormatter.ofStyle(FormatStyle, Locale, Chronology)