@Immutable public class DateTimeVelocityUtils extends Object
Constructor and Description |
---|
DateTimeVelocityUtils(DateTimeFormatter dateTimeFormatter)
Creates a new DateTimeFormats instance that will format date/time instances in the time zone of the passed-in
DateTimeFormatter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DateTimeVelocityUtils(DateTimeFormatter dateTimeFormatter)
dateTimeFormatter
- a DateTimeFormatterpublic String formatDMYHMS(Date date)
date
- a date/time to formatpublic String formatDMY(Date date)
date
- a date/time to formatpublic String formatTime(Date date)
date
- a date/time to formatCopyright © 2002-2019 Atlassian. All Rights Reserved.