Package groovy.time

# Class BaseDuration.From

java.lang.Object
groovy.time.BaseDuration.From

Enclosing class:
  BaseDuration

public abstract static class BaseDuration.From extends Object
Helper for computing dates relative to the current time.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `From()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract Date`
  `getNow()`
  Returns the computed date relative to now.
  `Date`
  `getToday()`
  Returns the computed date relative to today.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### From

    public From()

- ## Method Details

  - ### getNow

    public abstract Date getNow()
    Returns the computed date relative to now.
    Returns:
      the computed date

  - ### getToday

    public Date getToday()
    Returns the computed date relative to today.
    Returns:
      the computed date