| 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). |
static <C extends CalendarVariant<C>> |
GeneralTimestamp.of(C calendarVariant,
PlainTime time)
Creates a new timestamp consisting of a calendar variant and a time component.
|
<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 | Class and Description |
|---|---|
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 | Class and Description |
|---|---|
class |
HinduCalendar
The traditional Hindu calendar which exists in many regional variants throughout the Indian
subcontinent.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalendarFamily<T extends CalendarVariant<T>>
Represents a set of various calendar systems as members of a family.
|
static class |
CalendarFamily.Builder<T extends CalendarVariant<T>>
Creates a builder for a new calendar family
and will only be used during loading a class of a calendar variant
in a static initializer.
|
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,
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. |
static <T extends CalendarVariant<T>> |
CalendarFamily.Builder.setUp(Class<T> chronoType,
ChronoMerger<T> merger,
Map<String,? extends CalendarSystem<T>> calendars)
Creates a builder for building a calendar family.
|
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].
|
default <T extends CalendarVariant<T>> |
CalendarDate.transform(Class<T> target,
String variant)
Converts this calendar date to the given target type 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].
|
| 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.