com.atlassian.confluence.core.datetime
Class FriendlyDateFormatterHelper
java.lang.Object
com.atlassian.confluence.core.datetime.FriendlyDateFormatterHelper
public class FriendlyDateFormatterHelper
- extends Object
A helper that produces a friendly date string (as opposed to Message object like FriendlyDateFormatter
).
Method Summary |
String |
format(Date date)
Produces a friendly date of the specified date according to the locale settings of the thread local user. |
String |
format(Date date,
com.atlassian.user.User user)
Produces a friendly date of the specified date according to the locale settings of the specified user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FriendlyDateFormatterHelper
public FriendlyDateFormatterHelper(FriendlyDateFormatter friendlyDateFormatter,
I18NBeanFactory i18NBeanFactory,
LocaleManager localeManager)
format
public String format(Date date)
- Produces a friendly date of the specified date according to the locale settings of the thread local user.
- Parameters:
date
- the date
- Returns:
- a friendly date
format
public String format(Date date,
com.atlassian.user.User user)
- Produces a friendly date of the specified date according to the locale settings of the specified user.
- Parameters:
date
- the date
- Returns:
- a friendly date
Copyright © 2003-2013 Atlassian. All Rights Reserved.