| 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 | 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 |
|---|---|
static TimeMetric<IsoUnit,Duration<IsoUnit>> |
Duration.in(Timezone tz,
IsoUnit... units)
Helps to evaluate the zonal duration between two timestamps
and applies an offset correction if necessary.
|
static <U extends IsoUnit> |
Duration.in(U... units)
Constructs a metric for any kind of standard units in
normalized form.
|
static TimeMetric<ClockUnit,Duration<ClockUnit>> |
Duration.inClockUnits()
Constructs a metric in hours, minutes, seconds and nanoseconds.
|
static TimeMetric<CalendarUnit,Duration<CalendarUnit>> |
Duration.inYearsMonthsDays()
Constructs a metric in years, months and days.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMetric<U extends ChronoUnit,P extends AbstractDuration<U>>
Represents a metric suitable for the default algorithm of Time4J.
|
| Modifier and Type | Method and Description |
|---|---|
<P> P |
TimePoint.until(T end,
TimeMetric<? extends U,P> metric)
Calculates the (most normalized) time span between this time point
and given end time point using the given metric.
|
Copyright © 2014. All rights reserved.