org.apache.tapestry5.corelib.components

## Class TimeInterval

- java.lang.Object
- - org.apache.tapestry5.corelib.components.TimeInterval

-     @SupportsInformalParameters
       @Import(module="t5/core/time-interval")
      public class TimeInterval
      extends Object

  Used to present an interval value using Moment.js's from() or fromNow() functions. The interval is determined in terms of a start and end date; either (but not both) may be omitted, in which case the client will dynamically update the element. In that case, the value will live update, approximately every second. This component will render an empty element. The element will match the template element, or a "span" if the template did not provide an element. Informal parameters will be rendered into the element. When the end date is after the start date, the rendered text will be prefixed with "in". When the end date precedes the start date, the rendered text will be suffixed with "ago". The plain parameter is used to turn off the prefix or suffix.
  Since:
    5.4
  See Also:
    `LocalDate`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TimeInterval()`

  - ### Method Summary

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

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

- - ### Constructor Detail

    - #### TimeInterval

          public TimeInterval()

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.