Uses of Interface
net.time4j.engine.TimeMetric
Packages that use 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
Fields in net.time4j declared as TimeMetricModifier and TypeFieldDescriptionstatic TimeMetric<TimeUnit,MachineTime<TimeUnit>>MachineTime.ON_POSIX_SCALEReversible metric on the POSIX scale (without leap seconds).static TimeMetric<TimeUnit,MachineTime<SI>>MachineTime.ON_UTC_SCALEReversible metric on the UTC scale (inclusive leap seconds).Methods in net.time4j that return TimeMetricModifier 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
Classes in net.time4j.engine that implement TimeMetricModifier and TypeClassDescriptionclassAbstractMetric<U extends ChronoUnit,P extends AbstractDuration<U>>Represents a metric suitable for the default algorithm of Time4J.Methods in net.time4j.engine that return TimeMetricModifier and TypeMethodDescriptionTimeMetric<U,P>AbstractMetric.reversible()default TimeMetric<U,P>TimeMetric.reversible()Obtains a modified metric which has reversible characteristics.Methods in net.time4j.engine with parameters of type TimeMetricModifier and TypeMethodDescription<P> PTimePoint.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.