Class UIDateRendererProvider

java.lang.Object
com.hybris.backoffice.renderer.utils.UIDateRendererProvider

public class UIDateRendererProvider extends Object
  • Field Details

  • Constructor Details

    • UIDateRendererProvider

      public UIDateRendererProvider()
  • Method Details

    • getFormattedDateLabel

      public String getFormattedDateLabel(Date now, Date referenceDate)
      Parameters:
      now -
      referenceDate -
      Returns:
      formatted value for Label. If referenceDate is today in reference to now, then the returned value is "Today - {time}", when is yesterday then returned value is "Yesterday - {time}", otherwise is {date} - {time}. "Today" and "Yesterday" labels can be localized. If one of the inputs is null then "Unknown" is returned.
    • getI18NLabelKey

      protected String getI18NLabelKey(Date now, Date referenceDate)
    • getLabel

      protected String getLabel(String labelKey, DateFormat timeFormat, DateFormat dateFormat, Date referenceDate)
    • getLabel

      protected String getLabel(String labelKey, String timeFormat, String dateFormat)
    • getFormatTimeZone

      public TimeZone getFormatTimeZone()
      Returns:
      get preferred timezone of current session. If current session is null, then null is returned.