| 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.range |
Interval support.
|
| Modifier and Type | Method and Description |
|---|---|
<C extends CalendarVariant<C>> |
ZonalClock.now(CalendarFamily<C> family,
String variant,
StartOfDay startOfDay)
Gets the current timestamp in the associated timezone and given chronology taking into account
given calendar variant and start of day.
|
<C extends CalendarVariant<C>> |
ZonalClock.now(CalendarFamily<C> family,
VariantSource variantSource,
StartOfDay startOfDay)
Equivalent to
now(chronology, variantSource.getVariant(), startOfDay). |
<C extends CalendarVariant<C>> |
Moment.toGeneralTimestamp(CalendarFamily<C> family,
String variant,
TZID tzid,
StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone.
|
| Modifier and Type | Method and Description |
|---|---|
static CalendarFamily<HistoricCalendar> |
HistoricCalendar.family()
Returns the associated calendar family.
|
static CalendarFamily<HijriCalendar> |
HijriCalendar.family()
Returns the associated calendar family.
|
| Modifier and Type | Method and Description |
|---|---|
static CalendarFamily<HinduCalendar> |
HinduCalendar.family()
Returns the associated calendar family.
|
| Modifier and Type | Method and Description |
|---|---|
CalendarFamily<T> |
CalendarFamily.Builder.build()
Creates and registers a calendar family.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends CalendarVariant<T>> |
CalendarDate.from(ChronoLocalDate threeten,
CalendarFamily<T> target,
String variant)
Converts the calendar date corresponding to
ChronoLocalDate
in given target chronology and variant. |
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. |
default <T extends CalendarVariant<T>> |
CalendarDate.transform(CalendarFamily<T> target,
String variant)
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(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].
|
| Modifier and Type | Method and Description |
|---|---|
static <C extends CalendarVariant<C>> |
ChronoFormatter.setUpWithOverride(Locale locale,
CalendarFamily<C> overrideCalendar)
Constructs a builder for creating global formatters with usage of given calendar type.
|
| Modifier and Type | Method and Description |
|---|---|
static <D extends CalendarVariant<D>> |
CalendarPeriod.on(CalendarFamily<D> family,
String variant)
Defines a timeline on which new generic calendar intervals can be created.
|
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.