| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.calendar |
Support for various regional calendars.
|
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.format |
Defines common interfaces for any format support of Time4J.
|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Method and Description |
|---|---|
static <S> Chronology<S> |
Moment.axis(Converter<S,Moment> converter)
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<LocalDateTime> |
PlainTimestamp.threeten()
Obtains a bridge chronology for the type
java.time.LocalDateTime. |
static Chronology<LocalTime> |
PlainTime.threeten()
Obtains a bridge chronology for the type
java.time.LocalTime. |
static Chronology<LocalDate> |
PlainDate.threeten()
Obtains a bridge chronology for the type
java.time.LocalDate. |
static Chronology<Instant> |
Moment.threeten()
Obtains a bridge chronology for the type
java.time.Instant. |
static Chronology<MonthDay> |
AnnualDate.threeten()
Obtains a bridge chronology for the type
java.time.MonthDay. |
| Modifier and Type | Method and Description |
|---|---|
<T extends ChronoEntity<T>> |
ZonalClock.now(Chronology<T> chronology)
Gets the current timestamp in the associated timezone and given chronology.
|
<C extends Calendrical<?,C>> |
Moment.toGeneralTimestamp(Chronology<C> chronology,
TZID tzid,
StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ChronoEntity<T> & CalendarDate> |
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> |
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>> |
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> |
CommonElements.localDayOfWeek(Chronology<T> chronology,
Weekmodel model)
Defines an element for the weekday with a localized day number in
the value range
1-7. |
static <T extends ChronoEntity<T> & CalendarDate> |
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> |
CommonElements.weekOfYear(Chronology<T> chronology,
Weekmodel model)
Creates an integer element for the week of year in given chronology dependent on given week model.
|
| Modifier and Type | Class and Description |
|---|---|
class |
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 |
TimeAxis<U,T extends TimePoint<U,T>>
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 Type | Method and Description |
|---|---|
Chronology<T> |
Chronology.Builder.build()
Finishes the build of a new chronology.
|
static <T> Chronology<T> |
Chronology.lookup(Class<T> chronoType)
Returns a typed singleton per
ChronoEntity-class. |
default Chronology<?> |
ChronoMerger.preparser()
This method defines a child chronology which can preparse
a chronological text.
|
Chronology<?> |
Chronology.preparser() |
Chronology<?> |
BridgeChronology.preparser() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Chronology<? extends CalendarDate>> |
CalendarProvider.findChronology(String name)
Obtains a suitable chronology for given name.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Calendrical<?,T>> |
CalendarDate.from(ChronoLocalDate threeten,
Chronology<T> target)
Converts the calendar date corresponding to
ChronoLocalDate in given target chronology. |
default <T extends Calendrical<?,T>> |
CalendarDate.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].
|
| Constructor and Description |
|---|
BridgeChronology(Converter<S,T> converter,
Chronology<T> delegate)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static CalendarText |
CalendarText.getInstance(Chronology<?> chronology,
Locale locale)
Returns an instance of
CalendarText for given chronology
and language. |
| Constructor and Description |
|---|
Builder(Chronology<?> chronology)
Constructor for determining the calendar type.
|
| Modifier and Type | Method and Description |
|---|---|
Chronology<T> |
ChronoFormatter.getChronology()
Returns the associated chronology.
|
Chronology<?> |
ChronoFormatter.Builder.getChronology()
Returns the calendar override if set else the associated chronology.
|
| Modifier and Type | Method and Description |
|---|---|
static <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.ofStyle(DisplayMode style,
Locale locale,
Chronology<T> chronology)
Deprecated.
|
static <T extends LocalizedPatternSupport> |
ChronoFormatter.ofStyle(FormatStyle style,
Locale locale,
Chronology<T> chronology)
Constructs a style-based formatter for general chronologies.
|
static <T> ChronoFormatter.Builder<T> |
ChronoFormatter.setUp(Chronology<T> chronology,
Locale locale)
Constructs a builder for creating formatters.
|
static <C extends Calendrical<?,C>> |
ChronoFormatter.setUpWithOverride(Locale locale,
Chronology<C> overrideCalendar)
Constructs a builder for creating global formatters with usage of given calendar type.
|
| Modifier and Type | Method and Description |
|---|---|
static Chronology<SpanOfWeekdays> |
SpanOfWeekdays.chronology()
Yields the associated chronology.
|
static Chronology<CalendarYear> |
CalendarYear.chronology()
Yields the associated chronology.
|
static Chronology<CalendarWeek> |
CalendarWeek.chronology()
Yields the associated chronology.
|
static Chronology<CalendarQuarter> |
CalendarQuarter.chronology()
Yields the associated chronology.
|
static Chronology<CalendarMonth> |
CalendarMonth.chronology()
Yields the associated chronology.
|
static Chronology<Year> |
CalendarYear.threeten()
Obtains a bridge chronology for the type
java.time.Year. |
static Chronology<YearMonth> |
CalendarMonth.threeten()
Obtains a bridge chronology for the type
java.time.YearMonth. |
Copyright © 2014–2021. All rights reserved.