com.atlassian.confluence.core.datetime
Class FriendlyDateFormatterHelper

java.lang.Object
  extended by 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).


Constructor Summary
FriendlyDateFormatterHelper(FriendlyDateFormatter friendlyDateFormatter, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager)
           
 
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
 

Constructor Detail

FriendlyDateFormatterHelper

public FriendlyDateFormatterHelper(FriendlyDateFormatter friendlyDateFormatter,
                                   I18NBeanFactory i18NBeanFactory,
                                   LocaleManager localeManager)
Method Detail

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.