Package org.fastnate.util
Class RelativeDate.Precision
java.lang.Object
org.fastnate.util.RelativeDate.Precision
- Enclosing class:
RelativeDate
The precision of a difference between a reference date and a date property.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
unit
The name of the unit of this precision. -
millis
private final long millisThe precision of the unit in milliseconds.
-
-
Constructor Details
-
Precision
Precision(String unit, long millis) Creates a newPrecisioninstance.- Parameters:
unit- The name of the unit of this precision.millis- The precision of the unit in milliseconds.
-
-
Method Details