Class FastIntervalStringFormatter

java.lang.Object
org.apache.druid.java.util.common.FastIntervalStringFormatter

public final class FastIntervalStringFormatter extends Object
  • Method Details

    • format

      public static String format(org.joda.time.Interval interval)
      Tries to use optimised format if the interval is within [2000-03-01T00:00:00.000Z, 2400-02-29T23:59:59.999Z]. Will fall back to AbstractInterval.toString() if the interval is not within the range or not in UTC timezone.
      Parameters:
      interval - The interval to convert to a string.
      Returns:
      A string representation of the interval.