Uses of Interface
net.time4j.engine.TimeMetric
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Defines the common generic schemes and interfaces of chronological
systems.
-
Uses of TimeMetric in net.time4j
Modifier and TypeFieldDescriptionstatic TimeMetric<TimeUnit,MachineTime<TimeUnit>>
MachineTime.ON_POSIX_SCALE
Reversible metric on the POSIX scale (without leap seconds).static TimeMetric<TimeUnit,MachineTime<SI>>
MachineTime.ON_UTC_SCALE
Reversible metric on the UTC scale (inclusive leap seconds).Modifier and TypeMethodDescriptionstatic <U extends IsoUnit>
TimeMetric<U,Duration<U>>Duration.in(Collection<? extends U> units)
Constructs a metric for any kind of standard units in normalized form.static TimeMetric<IsoUnit,Duration<IsoUnit>>
Helps to evaluate the zonal duration between two timestamps and applies an offset correction if necessary.static <U extends IsoUnit>
TimeMetric<U,Duration<U>>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<IsoDateUnit,Duration<IsoDateUnit>>
Duration.inWeekBasedUnits()
Constructs a metric in week-based years, weeks and days.static TimeMetric<CalendarUnit,Duration<CalendarUnit>>
Duration.inYearsMonthsDays()
Constructs a metric in years, months and days. -
Uses of TimeMetric in net.time4j.engine
Modifier and TypeClassDescriptionclass
AbstractMetric<U extends ChronoUnit,P extends AbstractDuration<U>>
Represents a metric suitable for the default algorithm of Time4J.Modifier and TypeMethodDescriptionTimeMetric<U,P>
AbstractMetric.reversible()
default TimeMetric<U,P>
TimeMetric.reversible()
Obtains a modified metric which has reversible characteristics.Modifier and TypeMethodDescription<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.