Package org.xwiki.velocity.tools
Class ComparisonDateTool
- java.lang.Object
-
- org.apache.velocity.tools.generic.SafeConfig
-
- org.apache.velocity.tools.generic.LocaleConfig
-
- org.apache.velocity.tools.generic.FormatConfig
-
- org.apache.velocity.tools.generic.DateTool
-
- org.apache.velocity.tools.generic.ComparisonDateTool
-
- org.xwiki.velocity.tools.ComparisonDateTool
-
- All Implemented Interfaces:
Serializable
public class ComparisonDateTool extends org.apache.velocity.tools.generic.ComparisonDateTool
Extends the default DateTool from velocity-tools with some useful methods.- Since:
- 6.2.6, 6.4.2, 7.0M2
- Version:
- $Id: 24f59c254a90f04b36de08f2f944103111dfd147 $
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.velocity.tools.generic.ComparisonDateTool
ABBR_SUFFIX, AFTER_KEY, BEFORE_KEY, BUNDLE_NAME_KEY, CALENDAR_FIELDS, CURRENT_PREFIX, CURRENT_TYPE, DAY_KEY, DEFAULT_BUNDLE_NAME, DEPTH_KEY, DIFF_TYPE, EQUAL_KEY, EXACT_TYPE, FIELD_MAXIMA, HOUR_KEY, MILLIS_PER_DAY, MILLIS_PER_HOUR, MILLIS_PER_MINUTE, MILLIS_PER_MONTH, MILLIS_PER_SECOND, MILLIS_PER_WEEK, MILLIS_PER_YEAR, MILLISECOND_KEY, MINUTE_KEY, MONTH_KEY, ONE_DAY_SUFFIX, PLURAL_SUFFIX, RELATIVE_TYPE, SECOND_KEY, SKIPPED_UNITS_KEY, TIME_UNITS, UNIT_KEYS, WEEK_KEY, YEAR_KEY, ZERO_KEY
-
-
Constructor Summary
Constructors Constructor Description ComparisonDateTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormatSymbols
getDateFormatSymbols(Locale locale)
-
Methods inherited from class org.apache.velocity.tools.generic.ComparisonDateTool
compare, configure, difference, getText, timespan, toDays, toHours, toMinutes, toMonths, toSeconds, toWeeks, toYears, whenIs, whenIs
-
Methods inherited from class org.apache.velocity.tools.generic.DateTool
format, format, format, format, format, format, format, get, get, getCalendar, getDate, getDateFormat, getDateFormat, getDay, getDay, getMonth, getMonth, getSystemCalendar, getSystemDate, getSystemTime, getTimeZone, getValue, getValue, getValue, getYear, getYear, setTimeZone, toCalendar, toCalendar, toCalendar, toCalendar, toCalendar, toDate, toDate, toDate, toDate, toDate, toDate, toLocalizedPattern, toString
-
Methods inherited from class org.apache.velocity.tools.generic.LocaleConfig
getLocale, setLocale, toLocale
-
-
-
-
Method Detail
-
getDateFormatSymbols
public DateFormatSymbols getDateFormatSymbols(Locale locale)
- Parameters:
locale
- a locale object- Returns:
- the
DateFormatSymbols
instance corresponding to the given locale
-
-