DateUtil { public static String dateAndTimeRangeString(long start, long end) { return dateAndTimeString(start) + " - " + timeString(end); }  static Date fromISODateString(String isoDateString); static String toISOString(Date date, String format, TimeZone tz); static String toISOString(Date date); static String toISOString(long date); static String toISOAsUTC(final long timestamp); static String toISONoZone(final long timestamp); static Date toDate(Integer seconds); static int toSeconds(String hh_colon_mm); static String dateString(Date date); static String dateString(long mills); static String dateStringShort(long mills); static String timeString(Date date); static String timeString(long mills); static String timeStringWithSeconds(long mills); static String timeFullString(long mills); static String dateAndTimeString(Date date); static String dateAndTimeRangeString(long start, long end); static String dateAndTimeString(long mills); static String dateAndTimeAndSecondsString(long mills); static String dateAndTimeFullString(long mills); static String minAgo(long time); static String minAgoShort(long time); static String hourAgo(long time); static String timeStringFromSeconds(int seconds); static String timeFrameString(long timeInMillis); static String sinceString(long timestamp); static String untilString(long timestamp); static long now(); static long roundDateToSec(long date); static boolean isCloseToNow(long date); static boolean isOlderThan(long date, long minutes); static GregorianCalendar gregorianCalendar(); static long getTimeZoneOffsetMs(); static int getTimeZoneOffsetMinutes(final long timestamp); static String niceTimeScalar(long t); static String qs(double x, int digits);  }
@Test public void dateAndTimeRangeStringTest() { assertTrue(DateUtil.dateAndTimeRangeString(1513902750000L, 1513902750000L).contains("22")); assertTrue(DateUtil.dateAndTimeRangeString(1513902750000L, 1513902750000L).contains("32")); assertTrue(DateUtil.dateAndTimeRangeString(1513902750000L, 1513902750000L).contains("22")); assertTrue(DateUtil.dateAndTimeRangeString(1513902750000L, 1513902750000L).contains("32")); }