Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.velocity.tools.generic.ComparisonDateTool

        org.apache.velocity.tools.generic.ComparisonDateTool.Comparison
    • 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
      • Fields inherited from class org.apache.velocity.tools.generic.DateTool

        TIMEZONE_KEY
      • Fields inherited from class org.apache.velocity.tools.generic.FormatConfig

        DEFAULT_FORMAT, FORMAT_KEY
      • Fields inherited from class org.apache.velocity.tools.generic.LocaleConfig

        DEFAULT_LOCALE
      • Fields inherited from class org.apache.velocity.tools.generic.SafeConfig

        LOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY
    • 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.FormatConfig

        getFormat, setFormat
      • Methods inherited from class org.apache.velocity.tools.generic.LocaleConfig

        getLocale, setLocale, toLocale
      • Methods inherited from class org.apache.velocity.tools.generic.SafeConfig

        configure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
    • Constructor Detail

      • ComparisonDateTool

        public ComparisonDateTool()
    • Method Detail

      • getDateFormatSymbols

        public DateFormatSymbols getDateFormatSymbols​(Locale locale)
        Parameters:
        locale - a locale object
        Returns:
        the DateFormatSymbols instance corresponding to the given locale