- Enclosing class:
- BaseDuration
public abstract static class BaseDuration.From
extends Object
Helper for computing dates relative to the current time.
-
Constructor Summary
Constructors
-
Method Summary
Returns the date produced by applying the duration to the current time.
Returns
getNow() unchanged, so the time of day is kept.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
getNow
public abstract Date getNow()
Returns the date produced by applying the duration to the current time.
- Returns:
- that date, with the time of day preserved
-
getToday
Returns
getNow() unchanged, so the time of day is kept.
- Returns:
- the same date
getNow() produces