TemporalUnit
Interface TemporalUnit
- All Known Implementing Classes:
- ChronoUnit
public interface TemporalUnit
A unit of date-time, such as Days or Hours.
Measurement of time is built on units, such as years, months, days, hours, minutes and seconds. Implementations of this interface represent those units.
An instance of this interface represents the unit itself, rather than an amount of the unit. See Period
for a class that represents an amount in terms of the common units.
The most commonly used units are defined in ChronoUnit
. Further units are supplied in IsoFields
. Units can also be