Class DateFormatter

java.lang.Object
com.djrapitops.plan.delivery.formatting.time.DateFormatter
All Implemented Interfaces:
Formatter<Long>, Function<Long,String>
Direct Known Subclasses:
ClockFormatter, DayFormatter, HttpLastModifiedDateFormatter, ISO8601NoClockFormatter, JavascriptDateFormatter, SecondFormatter, YearFormatter

public abstract class DateFormatter extends Object implements Formatter<Long>
Abstract formatter for a timestamp.
  • Field Details

    • config

      protected final PlanConfig config
    • locale

      protected final Locale locale
  • Constructor Details

  • Method Details

    • format

      protected String format(long epochMs, String format)
    • format

      protected String format(long epochMs, String format, Locale usedLocale)
    • format

      protected String format(long epochMs, String format, Locale usedLocale, TimeZone timeZone)
    • replaceRecentDays

      protected String replaceRecentDays(long epochMs, String format)
    • replaceRecentDays

      protected String replaceRecentDays(long epochMs, String format, String pattern)