| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Duration<U extends IsoUnit>
ISO-8601-compatible duration between two time points.
|
| Modifier and Type | Method and Description |
|---|---|
long |
ClockUnit.convert(TimeSpan<? extends ClockUnit> duration)
Converts the given duration to an amount in this unit and performs
any necessary truncation if needed.
|
Duration<CalendarUnit> |
PlainDate.normalize(TimeSpan<? extends CalendarUnit> timespan)
Normalized given timespan using years, months and days.
|
Duration<IsoUnit> |
PlainTimestamp.normalize(TimeSpan<? extends IsoUnit> timespan)
Normalized given timespan using years, months, days and
all clock units.
|
Duration<U> |
Duration.plus(TimeSpan<? extends U> timespan)
Creates a duration as union of this instance and given timespan
where partial amounts of equal units will be summed up.
|
List<Duration<U>> |
Duration.union(TimeSpan<? extends U> timespan)
Creates a duration as union of this instance and given timespan
where partial amounts of equal units will be summed up.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDuration<U extends ChronoUnit>
Defines a timespan using the default algorithm of Time4J.
|
| Modifier and Type | Method and Description |
|---|---|
TimeSpan<U> |
Normalizer.normalize(TimeSpan<? extends U> timespan)
Normalizes given time span such that the amounts of associated
time units are converted in a specific way.
|
| Modifier and Type | Method and Description |
|---|---|
T |
TimePoint.minus(TimeSpan<? extends U> timeSpan)
Subtracts given time span from this time point and yields
the result of subtraction.
|
TimeSpan<U> |
Normalizer.normalize(TimeSpan<? extends U> timespan)
Normalizes given time span such that the amounts of associated
time units are converted in a specific way.
|
T |
TimePoint.plus(TimeSpan<? extends U> timeSpan)
Adds the given time span to this time point and yields
the result of the addition.
|
Copyright © 2014–2015. All rights reserved.