| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.range |
Interval support.
|
| Modifier and Type | Field and Description |
|---|---|
static TimeMetric<TimeUnit,MachineTime<SI>> |
MachineTime.ON_UTC_SCALE
Reversible metric on the UTC scale (inclusive leap seconds).
|
| Modifier and Type | Method and Description |
|---|---|
static SI |
SI.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SI[] |
SI.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static MachineTime<SI> |
MachineTime.of(long amount,
SI unit)
Creates a machine time duration on the UTC scale.
|
static MachineTime<SI> |
MachineTime.ofSISeconds(BigDecimal seconds)
Creates a machine time duration on the UTC scale.
|
static MachineTime<SI> |
MachineTime.ofSISeconds(double seconds)
Creates a machine time duration on the UTC scale.
|
static MachineTime<SI> |
MachineTime.ofSIUnits(long seconds,
int fraction)
Creates a machine time duration on the UTC scale.
|
static Collector<MachineTime<SI>,?,MachineTime<SI>> |
MachineTime.summingUpReal()
Helps to sum up durations of a stream.
|
static Collector<MachineTime<SI>,?,MachineTime<SI>> |
MachineTime.summingUpReal()
Helps to sum up durations of a stream.
|
| Modifier and Type | Method and Description |
|---|---|
Moment |
Moment.minus(long amount,
SI unit)
Subtracts an amount of given SI-unit from this timestamp
on the UTC time scale.
|
static MachineTime<SI> |
MachineTime.of(long amount,
SI unit)
Creates a machine time duration on the UTC scale.
|
Moment |
Moment.plus(long amount,
SI unit)
Adds an amount of given SI-unit to this timestamp
on the UTC time scale.
|
long |
Moment.until(Moment end,
SI unit)
Calculates the time distance between this timestamp and given
end timestamp in given SI-unit on the UTC time scale.
|
| Modifier and Type | Method and Description |
|---|---|
Moment |
Moment.minus(MachineTime<SI> realTime)
Subtracts given real time from this timestamp on the UTC time scale.
|
Moment |
Moment.plus(MachineTime<SI> realTime)
Adds given real time to this timestamp on the UTC time scale.
|
| Modifier and Type | Method and Description |
|---|---|
MachineTime<SI> |
MomentInterval.getRealDuration()
Yields the length of this interval on the UTC-scale.
|
| Modifier and Type | Method and Description |
|---|---|
MomentInterval |
MomentInterval.move(long amount,
SI unit)
Moves this interval along the UTC-axis by given SI-units.
|
Copyright © 2014–2021. All rights reserved.