Package com.atlassian.jira.datetime
Class DateVelocityUtils
java.lang.Object
com.atlassian.jira.datetime.DateVelocityUtils
Aggregates the most commonly-used date formats in a single instance, for use within Velocity templates. All strings
returned by this class are in the system time zone, and are either HTML- or XML-escaped (as appropriate).
- Since:
- v5.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateVelocityUtils
-
-
Method Details
-
formatRelative
Returns a string representation of the given date in DateTimeStyle#RELATIVE_WITHOUT_TIME format.- Parameters:
date- a date/time to format- Returns:
- an string containing the given date/time (HTML-escaped)
-
formatRSS
Returns a string representation of the given date in DateTimeStyle#RSS_RFC822_DATE_TIME format.- Parameters:
date- a date/time to format- Returns:
- an string containing the given date/time (XML-escaped)
-