java.lang.Object | |
↳ | com.atlassian.jira.datetime.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 are either HTML- or XML-escaped (as appropriate).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new DateTimeFormats instance that will format date/time instances in the time zone of the passed-in
DateTimeFormatter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a string representation of the given date/time in DateTimeStyle#DATE format.
| |||||||||||
Returns a string representation of the given date/time in DateTimeStyle#COMPLETE format.
| |||||||||||
Returns a string representation of the given date/time in DateTimeStyle#RSS_RFC822_DATE_TIME format.
| |||||||||||
Returns a string representation of the given date/time in DateTimeStyle#TIME format.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new DateTimeFormats instance that will format date/time instances in the time zone of the passed-in DateTimeFormatter.
dateTimeFormatter | a DateTimeFormatter |
---|
Returns a string representation of the given date/time in DateTimeStyle#DATE format.
date | a date/time to format |
---|
Returns a string representation of the given date/time in DateTimeStyle#COMPLETE format.
date | a date/time to format |
---|
Returns a string representation of the given date/time in DateTimeStyle#RSS_RFC822_DATE_TIME format.
date | a date/time to format |
---|
Returns a string representation of the given date/time in DateTimeStyle#TIME format.
date | a date/time to format |
---|