code: @Deprecated
    public static String replaceShorthand(char c, Map<String, String> headers,
        TimeZone timeZone, boolean needRounding, int unit, int roundDown,
        boolean useLocalTimestamp) {
      long ts = 0;
      if (useLocalTimestamp) {
        ts = clock.currentTimeMillis();
      }
      return replaceShorthand(c, headers, timeZone, needRounding, unit,
          roundDown, false, ts);
    }
docs: Hardcoded lookups for %x style escape replacement. Add your own!
  
  All shorthands are Date format strings, currently.
  
  Returns the empty string if an escape is not recognized.
  
  Dates follow the same format as unix date, with a few exceptions.
  
  <p>This static method will be REMOVED in a future version of Flume</p>
  
  @param c - The character to replace.
  @param headers - Event headers
  @param timeZone - The timezone to use for formatting the timestamp
  @param needRounding - Should the timestamp be rounded down?
  @param unit - if needRounding is true, what unit to round down to. This
  must be one of the units specified by {@link java.util.Calendar} -
  HOUR, MINUTE or SECOND. Defaults to second, if none of these are present.
  Ignored if needRounding is false.
  @param roundDown - if needRounding is true,
  The time should be rounded to the largest multiple of this
  value, smaller than the time supplied, defaults to 1, if <= 0(rounds off
  to the second/minute/hour immediately lower than the timestamp supplied.
  Ignored if needRounding is false.
  
  @return