Uses of Interface
net.time4j.engine.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
Modifier 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.Modifier 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
Modifier and TypeClassDescriptionclass
AbstractDuration<U extends ChronoUnit>
Defines a timespan using the default algorithm of Time4J.Modifier and TypeMethodDescriptionNormalizes given time span such that the amounts of associated time units are converted in a specific way.Modifier 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
Modifier 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. -
Uses of TimeSpan in net.time4j.range
Modifier 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.