Package | Description |
---|---|
org.apache.velocity.tools.generic |
Contains a collection of reusable, general-purpose "tools" for Velocity.
|
Modifier and Type | Method and Description |
---|---|
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.abbr(boolean abbr)
Sets whether or not this comparison is to be rendered in
abbreviated form or not.
|
protected ComparisonDateTool.Comparison |
ComparisonDateTool.compare(Object now,
Object then,
int type)
Internal comparison method.
|
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.depth(int depth)
Set the maximum number of units to render for this comparison.
|
ComparisonDateTool.Comparison |
ComparisonDateTool.difference(Object now,
Object then)
Returns a
ComparisonDateTool.Comparison between the result of
the second specified date and the first specified date. |
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.getAbbr()
This is equivalent to calling
abbr(boolean abbr) with
true as the argument, thus setting this comparison to be
rendered in abbreviated form. |
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.getDifference()
Sets this comparison to be rendered as a
ComparisonDateTool.difference(java.lang.Object, java.lang.Object) . |
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.getExact()
Sets this comparison to be rendered as if it where generated using
the
ComparisonDateTool.timespan(Object now, Object then) method. |
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.getFull()
Sets the
depth(int depth) to which this comparison is rendered
to the maximum number of time units available to the tool. |
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.getRelative()
Sets this comparison to be rendered as if it where generated using
the
ComparisonDateTool.whenIs(Object now, Object then) method. |
ComparisonDateTool.Comparison |
ComparisonDateTool.Comparison.locale(Locale loc)
Sets the locale used to look up the textual portions of the
rendering.
|
ComparisonDateTool.Comparison |
ComparisonDateTool.timespan(Object now,
Object then)
Returns a
ComparisonDateTool.Comparison between the result of
the second specified date and the first specified date. |
ComparisonDateTool.Comparison |
ComparisonDateTool.whenIs(Object then)
Returns a
ComparisonDateTool.Comparison between the result of
DateTool.getCalendar() and the specified date. |
ComparisonDateTool.Comparison |
ComparisonDateTool.whenIs(Object now,
Object then)
Returns a
ComparisonDateTool.Comparison between the second specified date
and the first specified date. |
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.