public class DateFormatServiceImpl extends Object implements DateFormatService
Modifier and Type | Field and Description |
---|---|
static String |
ADG_DATE_FORMAT |
static org.joda.time.format.DateTimeFormatter |
ADG_DATE_FORMATTER |
Constructor and Description |
---|
DateFormatServiceImpl(UserAccessor userAccessor,
FormatSettingsManager formatSettingsManager,
LocaleManager localeManager) |
Modifier and Type | Method and Description |
---|---|
String |
getDateFormatPatternForUser() |
String |
getFormattedDateByUserLocale(org.joda.time.LocalDateTime date)
Format the given date in an appropriate format according to the user's locale.
|
public static final String ADG_DATE_FORMAT
public static final org.joda.time.format.DateTimeFormatter ADG_DATE_FORMATTER
public DateFormatServiceImpl(UserAccessor userAccessor, FormatSettingsManager formatSettingsManager, LocaleManager localeManager)
public String getFormattedDateByUserLocale(org.joda.time.LocalDateTime date)
DateFormatService
getFormattedDateByUserLocale
in interface DateFormatService
date
- the date to formatpublic String getDateFormatPatternForUser()
getDateFormatPatternForUser
in interface DateFormatService
Copyright © 2003–2020 Atlassian. All rights reserved.