| 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.calendar.hindu |
Support for the traditional Hindu calendar family.
|
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| net.time4j.history |
Support for the historical ancestors of modern ISO-8601-standard.
|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GeneralTimestamp<C>
Represents a general timestamp consisting of a general date and a 24-hour-clock time.
|
| Modifier and Type | Method and Description |
|---|---|
<C extends CalendarVariant<C>> |
ZonalClock.now(CalendarFamily<C> family,
VariantSource variantSource,
StartOfDay startOfDay)
Equivalent to
now(chronology, variantSource.getVariant(), startOfDay). |
| Modifier and Type | Class and Description |
|---|---|
class |
HijriAdjustment
Represents a small day adjustment to any islamic calendar variant.
|
class |
HijriAlgorithm
Describes islamic calendar variants based on simplistic deterministic algorithms.
|
class |
HijriCalendar
Represents the Hijri calendar used in many islamic countries.
|
class |
HistoricCalendar
Represents the historic christian calendar used in most European countries.
|
| Modifier and Type | Method and Description |
|---|---|
int |
HijriCalendar.Unit.between(HijriCalendar start,
HijriCalendar end,
VariantSource variantSource)
Equivalent to
between(start, end, variantSource.getVariant()). |
static HijriCalendar |
HijriCalendar.nowInSystemTime(VariantSource variantSource,
StartOfDay startOfDay)
Obtains the current calendar date in system time.
|
static HijriAdjustment |
HijriAdjustment.of(VariantSource variantSource,
int adjustment)
Defines a day adjustment of the given Hijri calendar variant.
|
static HijriCalendar |
HijriCalendar.of(VariantSource variantSource,
int hyear,
HijriMonth hmonth,
int hdom)
Creates a new instance of a Hijri calendar date in given variant.
|
static HijriCalendar |
HijriCalendar.of(VariantSource variantSource,
int hyear,
int hmonth,
int hdom)
Creates a new instance of a Hijri calendar date in given variant.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HinduCalendar
The traditional Hindu calendar which exists in many regional variants throughout the Indian
subcontinent.
|
class |
HinduVariant
The Hindu calendar variants differ on various sets of calculations, month names and the choice of era.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalendarVariant<D extends CalendarVariant<D>>
Represents an immutable calendar variant.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends CalendarVariant<T>> |
CalendarDate.from(ChronoLocalDate threeten,
CalendarFamily<T> target,
VariantSource variantSource)
Converts the calendar date corresponding to
ChronoLocalDate
in given target chronology and variant. |
CalendarSystem<T> |
Chronology.getCalendarSystem(VariantSource variant)
Returns the calendar system for given calendar variant if available.
|
TimeLine<T> |
CalendarFamily.getTimeLine(VariantSource variant)
Obtains an object which is useful for generic interval support.
|
default <T extends CalendarVariant<T>> |
CalendarDate.transform(CalendarFamily<T> target,
VariantSource variantSource)
Converts this calendar date to the given target chronology based on
the count of days relative to UTC epoch [1972-01-01].
|
default <T extends CalendarVariant<T>> |
CalendarDate.transform(Class<T> target,
VariantSource variantSource)
Converts this calendar date to the given target type based on
the count of days relative to UTC epoch [1972-01-01].
|
D |
CalendarVariant.withVariant(VariantSource variantSource)
Equivalent to
withVariant(variantSource.getVariant()). |
| Modifier and Type | Method and Description |
|---|---|
ChronoFormatter<T> |
ChronoFormatter.withCalendarVariant(VariantSource variantSource)
Sets the calendar variant.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChronoHistory
Represents the chronological history of calendar reforms in a given region.
|
| Modifier and Type | Method and Description |
|---|---|
static <D extends CalendarVariant<D>> |
CalendarPeriod.on(CalendarFamily<D> family,
VariantSource variant)
Defines a timeline on which new generic calendar intervals can be created.
|
Copyright © 2014–2021. All rights reserved.