hunt.time.temporal.TemporalUnit

Undocumented in source.

Members

Classes

TemporalUnit
class TemporalUnit

A unit of date-time, such as Days or Hours. !(p) Measurement of time is built on units, such as years, months, days, hours, minutes and seconds. Implementations of this interface represent those units. !(p) An instance of this interface represents the unit itself, rather than an amount of the unit. See {@link Period} for a class that represents an amount _in terms of the common units. !(p) The most commonly used units are defined _in {@link ChronoUnit}. Further units are supplied _in {@link IsoFields}. Units can also be written by application code by implementing this interface. !(p) The unit works using double dispatch. Client code calls methods on a date-time like {@code LocalDateTime} which check if the unit is a {@code ChronoUnit}. If it is, then the date-time must handle it. Otherwise, the method call is re-dispatched to the matching method _in this interface.

Meta