| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Field and Description |
|---|---|
static TimeMetric<TimeUnit,MachineTime<TimeUnit>> |
MachineTime.ON_POSIX_SCALE
Metric on the POSIX scale (without leap seconds).
|
static TimeMetric<TimeUnit,MachineTime<SI>> |
MachineTime.ON_UTC_SCALE
Metric on the UTC scale (inclusive leap seconds).
|
| Modifier and Type | Method and Description |
|---|---|
MachineTime<U> |
MachineTime.abs()
Converts this machine duration to its absolute amount.
|
MachineTime<U> |
MachineTime.dividedBy(long divisor)
Divides this duration by given divisor using rounding
mode
HALF_UP. |
MachineTime<U> |
MachineTime.inverse()
Creates a copy with inversed sign.
|
MachineTime<U> |
MachineTime.minus(long amount,
U unit)
Subtracts given temporal amount from this machine time.
|
MachineTime<U> |
MachineTime.minus(MachineTime<U> duration)
Subtracts given temporal amount from this machine time.
|
MachineTime<U> |
MachineTime.multipliedBy(long factor)
Multiplies this duration with given factor.
|
static MachineTime<SI> |
MachineTime.of(long amount,
SI unit)
Creates a machine time duration on the UTC scale.
|
static MachineTime<TimeUnit> |
MachineTime.of(long amount,
TimeUnit unit)
Creates a machine time duration on the POSIX scale.
|
static MachineTime<TimeUnit> |
MachineTime.ofPosixSeconds(BigDecimal seconds)
Creates a machine time duration on the UTC scale.
|
static MachineTime<TimeUnit> |
MachineTime.ofPosixSeconds(double seconds)
Creates a machine time duration on the UTC scale.
|
static MachineTime<TimeUnit> |
MachineTime.ofPosixUnits(long seconds,
int fraction)
Creates a machine time duration on the POSIX 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.
|
MachineTime<U> |
MachineTime.plus(long amount,
U unit)
Add given temporal amount to this machine time.
|
MachineTime<U> |
MachineTime.plus(MachineTime<U> duration)
Add given temporal amount to this machine time.
|
| Modifier and Type | Method and Description |
|---|---|
Moment |
Moment.minus(MachineTime<SI> duration)
Subtracts the given machine time duration in SI-seconds from this
moment.
|
MachineTime<U> |
MachineTime.minus(MachineTime<U> duration)
Subtracts given temporal amount from this machine time.
|
Moment |
Moment.plus(MachineTime<SI> duration)
Adds the given machine time duration in SI-seconds to this
moment.
|
MachineTime<U> |
MachineTime.plus(MachineTime<U> duration)
Add given temporal amount to this machine time.
|
Copyright © 2014. All rights reserved.