ExporterFileNameUtils { public static String getTimeStamp(Locale locale) { return getTimeStamp(new Date(), locale); }  static StringBuilder clean(String input); static String getTimeStamp(Locale locale); static String getTimeStamp(Date timestamp, Locale locale); static StringBuilder toCamelCase(StringBuilder input, String delimiter); static StringBuilder filterSpecialChars(StringBuilder str);  }
@Test public void testTimestamp() { Assert.assertEquals("201205292002", ExporterFileNameUtils.getTimeStamp(new Date(1338314522376L), Locale.GERMANY)); Assert.assertEquals("201205292010", ExporterFileNameUtils.getTimeStamp(new Date(1338315008925L ), Locale.GERMANY)); }