Class DateUtils

java.lang.Object
org.exoplatform.commons.utils.DateUtils

public class DateUtils extends Object
  • Field Details

  • Constructor Details

    • DateUtils

      public DateUtils()
  • Method Details

    • getTimeZone

      public static TimeZone getTimeZone(String ID)
      This method is similar to TimeZone.getTimeZone(String) with less contention
    • getRelativeTimeLabel

      public static String getRelativeTimeLabel(Locale locale, long postedTime)
      Gets prettyTime by timestamp.
      Parameters:
      locale -
      postedTime -
      Returns:
      String