Uses of Interface
net.time4j.engine.TimeSpan
Packages that use TimeSpan
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.
Defines common interfaces for any format support of Time4J.
Interval support.
-
Uses of TimeSpan in net.time4j
Classes in net.time4j that implement TimeSpanModifier and TypeClassDescriptionclass
ISO-8601-compatible duration between two time points.class
MachineTime<U>
Represents a duration for machine times in decimal seconds with nanosecond precision.Methods in net.time4j with parameters of type TimeSpanModifier and TypeMethodDescriptionlong
Converts the given duration to an amount in this unit and performs any necessary truncation if needed.PlainDate.normalize(TimeSpan<? extends CalendarUnit> timespan)
Normalized given timespan using years, months and days.Normalizes given timespan using years, months, days and all clock units.Creates a duration as union of this instance and given timespan where partial amounts of equal units will be summed up.void
MachineTime.Formatter.print(TimeSpan<? super TimeUnit> duration, Appendable buffer)
Creates a textual output of given duration and writes to the buffer.Creates a duration as union of this instance and given timespan where partial amounts of equal units will be summed up. -
Uses of TimeSpan in net.time4j.engine
Classes in net.time4j.engine that implement TimeSpanModifier and TypeClassDescriptionclass
AbstractDuration<U extends ChronoUnit>
Defines a timespan using the default algorithm of Time4J.Methods in net.time4j.engine that return TimeSpanModifier and TypeMethodDescriptionNormalizes given time span such that the amounts of associated time units are converted in a specific way.Methods in net.time4j.engine with parameters of type TimeSpanModifier and TypeMethodDescriptionSubtracts given time span from this time point and yields the result of subtraction.Normalizes given time span such that the amounts of associated time units are converted in a specific way.Adds the given time span to this time point and yields the result of the addition. -
Uses of TimeSpan in net.time4j.format
Classes in net.time4j.format with type parameters of type TimeSpanModifier and TypeClassDescriptionclass
TimeSpanFormatter<U,S extends TimeSpan<U>>
Represents a non-localized and user-defined format for timespans based on a pattern containing some standard symbols and literals.Methods in net.time4j.format with parameters of type TimeSpan -
Uses of TimeSpan in net.time4j.range
Classes in net.time4j.range that implement TimeSpanModifier and TypeClassDescriptionclass
Represents a time span in gregorian months.class
Represents a time span in gregorian quarter years.class
SingleUnitTimeSpan<U extends IsoDateUnit,D extends SingleUnitTimeSpan<U,D>>
Represents a time span in one calendrical unit only.class
Represents a time span in 7-day weeks.class
Years<U extends IsoDateUnit>
Represents a time span in gregorian or week-based years.