DateFormatUtil { @NotNull public static String formatFrequency(long time) { return CommonBundle.message("date.frequency", formatBetweenDates(time, 0)); } private  DateFormatUtil(); static long getDifferenceInDays(@NotNull Date startDate, @NotNull Date endDate); @NotNull static SyncDateFormat getDateFormat(); @NotNull static SyncDateFormat getTimeFormat(); @NotNull static SyncDateFormat getTimeWithSecondsFormat(); @NotNull static SyncDateFormat getDateTimeFormat(); @NotNull static SyncDateFormat getIso8601Format(); @NotNull static String formatTime(@NotNull Date time); @NotNull static String formatTime(long time); @NotNull static String formatTimeWithSeconds(@NotNull Date time); @NotNull static String formatTimeWithSeconds(long time); @NotNull static String formatDate(@NotNull Date time); @NotNull static String formatDate(long time); @NotNull static String formatPrettyDate(@NotNull Date date); @NotNull static String formatPrettyDate(long time); @NotNull static String formatDateTime(Date date); @NotNull static String formatDateTime(long time); @NotNull static String formatPrettyDateTime(Date date); @NotNull static String formatPrettyDateTime(long time); @NotNull static String formatDuration(long delta); @NotNull static String formatFrequency(long time); @NotNull static String formatBetweenDates(long d1, long d2); @NotNull static String formatAboutDialogDate(@NotNull Date date); static final long SECOND; static final long MINUTE; static final long HOUR; static final long DAY; static final long WEEK; static final long MONTH; static final long YEAR; static final long DAY_FACTOR; @SuppressWarnings("unused")
  static final SyncDateFormat ISO8601_DATE_FORMAT; }
@Test public void testFormatFrequency() { assertEquals("Once in 2 minutes", DateFormatUtil.formatFrequency(2 * 60 * 1000)); assertEquals("Once in a few moments", DateFormatUtil.formatFrequency(1000)); }