@SupportsInformalParameters
@Import(module="t5/core/time-interval")
public class TimeInterval
extends java.lang.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