Class FriendlyDateFormatterHelper

java.lang.Object
com.atlassian.confluence.core.datetime.FriendlyDateFormatterHelper

@Deprecated public class FriendlyDateFormatterHelper extends Object
A helper that produces a friendly date string (as opposed to Message object like FriendlyDateFormatter).
  • Constructor Details

  • Method Details

    • format

      public String format(Date date)
      Deprecated.
      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)
      Deprecated.
      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