|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.datetime.DateTimeVelocityUtils
@Immutable public class DateTimeVelocityUtils
Aggregates the most commonly-used date/time formats in a single instance, for use within Velocity templates. All strings returned by this class are in the user's time zone, and HTML-escaped.
Constructor Summary | |
---|---|
DateTimeVelocityUtils(DateTimeFormatter dateTimeFormatter)
Creates a new DateTimeFormats instance that will format date/time instances in the time zone of the passed-in DateTimeFormatter. |
Method Summary | |
---|---|
String |
formatDMY(Date date)
Returns a string representation of the given date/time in DateTimeStyle#DATE format. |
String |
formatDMYHMS(Date date)
Returns a string representation of the given date/time in DateTimeStyle#COMPLETE format. |
String |
formatRSS(Date date)
Returns a string representation of the given date/time in DateTimeStyle#RSS_RFC822_DATE_TIME format. |
String |
formatTime(Date date)
Returns a string representation of the given date/time in DateTimeStyle#TIME format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateTimeVelocityUtils(DateTimeFormatter dateTimeFormatter)
dateTimeFormatter
- a DateTimeFormatterMethod Detail |
---|
public String formatDMYHMS(Date date)
date
- a date/time to format
public String formatDMY(Date date)
date
- a date/time to format
public String formatTime(Date date)
date
- a date/time to format
public String formatRSS(Date date)
date
- a date/time to format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |