| 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.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Class and Description |
|---|---|
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 TimePoint<? super U,T>> |
MachineTime.addTo(T time) |
<T extends TimePoint<? super CalendarUnit,T>> |
CalendarUnit.between(T start,
T end)
Calculates the temporal distance between given calendar dates
in this calendar unit.
|
<T extends TimePoint<? super ClockUnit,T>> |
ClockUnit.between(T start,
T end)
Calculates the temporal distance between given wall times
in this unit.
|
static <U extends IsoUnit,T extends TimePoint<U,T>> |
Duration.comparator(T base)
Creates a
Comparator which compares durations based on
their lengths. |
<T extends TimePoint<? super U,T>> |
MachineTime.subtractFrom(T time) |
| 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 |
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 | 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 |
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.
|
static class |
TimeAxis.Builder<U,T extends TimePoint<U,T>>
Creates a builder for a new time axis respective chronology
and will only be used during loading a class of type
TimePoint (T) in a static initializer. |
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 | Class and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends TimePoint<? super U,T>> |
TimeSpan.addTo(T time)
Adds this time span to given time point.
|
<T extends TimePoint<? super U,T>> |
AbstractDuration.addTo(T time)
Adds this duration to given time point using the
default algorithm.
|
<T extends TimePoint<? super U,T>> |
TimeMetric.between(T start,
T end)
Computes the temporal distance between two time points.
|
<T extends TimePoint<? super U,T>> |
AbstractMetric.between(T start,
T end) |
static <U,T extends TimePoint<U,T>> |
TimePoint.max(T t1,
T t2)
Determines the maximum of both time points.
|
static <U,T extends TimePoint<U,T>> |
TimePoint.min(T t1,
T t2)
Determines the minimum of both time points.
|
static <U,T extends TimePoint<U,T>> |
TimeAxis.Builder.setUp(Class<U> unitType,
Class<T> chronoType,
ChronoMerger<T> merger,
T min,
T max)
Creates a builder for building a chronological but
non-calendrical system.
|
<T extends TimePoint<? super U,T>> |
TimeSpan.subtractFrom(T time)
Subtracts this time span from given time point.
|
<T extends TimePoint<? super U,T>> |
AbstractDuration.subtractFrom(T time)
Subtracts this duration from given time point using the
default algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends TimePoint<? super U,T>> |
SingleUnitTimeSpan.addTo(T time) |
static <T extends TimePoint<? super CalendarUnit,T>> |
Years.between(T t1,
T t2)
Determines the temporal distance between given dates/time-points in gregorian years.
|
static <T extends TimePoint<? super CalendarUnit,T>> |
Weeks.between(T t1,
T t2)
Determines the temporal distance between given dates/time-points in weeks.
|
static <T extends TimePoint<? super CalendarUnit,T>> |
Quarters.between(T t1,
T t2)
Determines the temporal distance between given dates/time-points in gregorian quarter years.
|
static <T extends TimePoint<? super CalendarUnit,T>> |
Months.between(T t1,
T t2)
Determines the temporal distance between given dates/time-points in gregorian months.
|
<T extends TimePoint<? super U,T>> |
SingleUnitTimeSpan.subtractFrom(T time) |
Copyright © 2014–2021. All rights reserved.