code: static public String getFormattedDateTime(long dt, String format, long tolerance)
      {
          return getFormattedDateTime(dt, format, true, tolerance);
      }
docs: Returns the given date formatted using the given format.
  @param dt The date to be formatted
  @param format The format to use to display the date
  @param tolerance The tolerance for the date to be formatted
  @return The given date formatted using the given format