| 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.bahai |
Support for the Badi calendar.
|
| net.time4j.calendar.frenchrev |
Support for the French revolutionary calendar.
|
| 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 |
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 | Class and Description |
|---|---|
class |
AnnualDate
Represents a combination of month and day-of-month as XML-pendant for
xsd:gMonthDay. |
class |
Moment
Represents an instant/moment on the universal timeline with reference
to the timezone UTC (UTC+00:00 / Greenwich-meridian).
|
class |
PlainDate
Represents a plain calendar date in conformance to ISO-8601-standard using the gregorian calendar rules
for all times.
|
class |
PlainTime
Represents a plain wall time without any timezone or date component
as defined in ISO-8601 up to nanosecond precision.
|
class |
PlainTimestamp
Represents a plain composition of calendar date and wall time as defined
in ISO-8601, but without any timezone.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<ChronoEntity<?>,BigDecimal> |
ProportionalElement.ratio()
Defines a query which interpretes the value of this element as
proportional rational number within the range between minimum and
maximum.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChineseCalendar
Represents the Chinese calendar supported in the gregorian range 1645-01-28/3000-01-27.
|
class |
CopticCalendar
Represents the calendar used by the Coptic church in Egypt.
|
class |
EastAsianCalendar<U,D extends EastAsianCalendar<U,D>>
Base class of all calendars which are derivates of the lunisolar rural calendar invented in China.
|
class |
EthiopianCalendar
Represents the calendar used in Ethiopia.
|
class |
EthiopianTime
Represents the 12-hour-time in second precision used in Ethiopia
starting in the morning at 6 AM as zero point.
|
class |
HebrewCalendar
Represents the calendar used by the worldwide Jewish community, but mainly in Israel for religious purposes.
|
class |
HebrewTime
Represents the 12-hour-time used in Jewish calendar starting in the evening
at either sunset or simplified at 6 PM as zero point.
|
class |
HijriCalendar
Represents the Hijri calendar used in many islamic countries.
|
class |
HistoricCalendar
Represents the historic christian calendar used in most European countries.
|
class |
IndianCalendar
Represents the national calendar of India.
|
class |
JapaneseCalendar
Represents the Japanese calendar from 701 AD (julian) until now.
|
class |
JucheCalendar
The Juche calendar used in North Korea uses as only difference to western gregorian
calendar a different year numbering with the Juche era 1912-01-01.
|
class |
JulianCalendar
Represents the proleptic Julian calendar.
|
class |
KoreanCalendar
Represents the traditional Koran calendar supported in the gregorian range 1645-01-28/3000-01-27.
|
class |
MinguoCalendar
The Minguo calendar used in Taiwan (Republic Of China) uses as only difference to western gregorian
calendar a different year numbering with the Minguo era 1912-01-01.
|
class |
PersianCalendar
Represents the Solar Hijri calendar which is officially used in Iran and Afghanistan.
|
class |
ThaiSolarCalendar
The Thai solar calendar calendar used in Thailand uses as only difference to western gregorian
calendar a different year numbering with the Buddhist era mainly.
|
class |
VietnameseCalendar
Represents the Vietnamese calendar supported in the gregorian range 1813-02-01/3000-01-27.
|
| 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 <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 |
BadiCalendar
Represents the calendar used by the Baha'i community.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FrenchRepublicanCalendar
Represents the calendar used in French Revolution between 1792 and 1805.
|
| 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 |
BridgeChronology<S,T extends ChronoEntity<T>>
Represents a foreign chronology which delegates formatting and parsing to a chronology in Time4J.
|
class |
ChronoEntity<T extends ChronoEntity<T>>
Represents a temporal object which associates partial temporal values
with chronological elements and also allows some manipulations of these
element values.
|
static class |
Chronology.Builder<T extends ChronoEntity<T>>
Builder for creating a new chronology without any time axis.
|
class |
StdOperator<T extends ChronoEntity<T>>
Factory for producing standard chronological operators which are applicable
on most chronological entities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalendarVariant<D extends CalendarVariant<D>>
Represents an immutable calendar variant.
|
class |
Calendrical<U,D extends Calendrical<U,D>>
Abstract base class of all plain calendar date types which are
convertible via their day epoch numbers.
|
class |
TimePoint<U,T extends TimePoint<U,T>>
Represents an immutable time point along a time axis which is directed
into the future.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ChronoEntity<T>> |
StdOperator.atCeiling(ChronoElement<?> element)
Yields an operator which rounds any entity up so that the child
elements will be set to the maximum.
|
static <T extends ChronoEntity<T>> |
StdOperator.atFloor(ChronoElement<?> element)
Yields an operator which rounds any entity down so that the child
elements will be set to the minimum.
|
static <T extends ChronoEntity<T>> |
StdOperator.decremented(ChronoElement<?> element)
Yields a new operator which can set any entity such that its
actual element value gets the decremented value.
|
static <T extends ChronoEntity<T>> |
StdOperator.incremented(ChronoElement<?> element)
Yields a new operator which can set any entity such that its
actual element value gets the incremented value.
|
static <T extends ChronoEntity<T>> |
StdOperator.maximized(ChronoElement<?> element)
Yields a new operator which can set any entity to its maximum
element value.
|
static <T extends ChronoEntity<T>> |
StdOperator.minimized(ChronoElement<?> element)
Yields a new operator which can set any entity to its minimum
element value.
|
static <T extends ChronoEntity<T>,V> |
StdOperator.newValue(V value,
ChronoElement<V> element)
Yields an operator which sets any entity such that its actual
element value will be set in normal mode to given value.
|
static <T extends ChronoEntity<T>,V> |
StdOperator.setLenient(V value,
ChronoElement<V> element)
Yields an operator which sets any entity such that its actual
element value will be set in lenient mode to given value.
|
static <T extends ChronoEntity<T>> |
Chronology.Builder.setUp(Class<T> chronoType,
ChronoMerger<T> chronoMerger)
Creates a builder for building a new chronological system.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoEntity<?> |
ChronoExtension.resolve(ChronoEntity<?> entity,
Locale locale,
AttributeQuery attributes)
Updates the given value source if necessary in order to resolve
the values of extension elements to values of standard elements.
|
| Modifier and Type | Method and Description |
|---|---|
T |
TimeAxis.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
T |
ChronoMerger.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing)
Creates a new entity of type T based on given chronological data.
|
T |
Chronology.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
S |
BridgeChronology.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
ChronoEntity<?> |
ChronoExtension.resolve(ChronoEntity<?> entity,
Locale locale,
AttributeQuery attributes)
Updates the given value source if necessary in order to resolve
the values of extension elements to values of standard elements.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
NumericalElement.parseFromInt(ChronoEntity<?> entity,
int value)
Converts and stores given integer into the result buffer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MultiFormatParser<T extends ChronoEntity<T>>
Serves for parsing of text input whose format is not yet known at compile time.
|
| Modifier and Type | Method and Description |
|---|---|
<V extends ChronoEntity<V>> |
ChronoFormatter.Builder.addCustomized(ChronoElement<V> element,
ChronoFormatter<V> formatter)
Defines a customized format element for given chronological
element.
|
static <T extends ChronoEntity<T>> |
MultiFormatParser.of(ChronoFormatter<T>... formats)
Creates a new multiple format parser.
|
static <T extends ChronoEntity<T>> |
MultiFormatParser.of(List<ChronoFormatter<T>> formats)
Creates a new multiple format parser.
|
static <T extends ChronoEntity<T>> |
ChronoFormatter.setUp(Class<T> type,
Locale locale)
Constructs a builder for creating formatters.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoEntity<?> |
ParseLog.getRawValues()
Yields the parsed raw data as chronological entity.
|
ChronoEntity<?> |
ChronoFormatter.parseRaw(CharSequence text,
int offset)
Translates given text as raw chronological entity without
converting to the target type of the underlying chronology.
|
ChronoEntity<?> |
ChronoFormatter.parseRaw(String text)
Translates given text as raw chronological entity without
converting to the target type of the underlying chronology.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalendarMonth
Represents the month of a gregorian calendar year as interval
(like from 1st of January until end of January).
|
class |
CalendarQuarter
Represents the quarter of a gregorian calendar year as interval
(like from 1st of January until end of March).
|
class |
CalendarWeek
Represents the calendar week starting on Monday according to ISO-8601-paper.
|
class |
CalendarYear
Represents a full gregorian calendar year as interval from 1st of January until end of December.
|
class |
FixedCalendarInterval<T extends FixedCalendarInterval<T>>
Represents a fixed calendar interval.
|
class |
SpanOfWeekdays
Describes an arbitrary span of weekdays.
|
Copyright © 2014–2021. All rights reserved.