@Test public void testDateFormatter_toString_Secs_epoch() { Date date = new Date(System.currentTimeMillis() - 3600); String datetime = String.valueOf(new BigDecimal(date.getTime()).divide(new BigDecimal(1000), RoundingMode.HALF_UP).longValue()); assertEquals(datetime, DateFormatUtil.toString(date, DateFormatUtil.CustomDateFormat.SECONDS_SINCE_EPOCH.name())); }
public static String toString(Date d, String format) { return getFormatter(format).toString(d, format); }
DateFormatUtil { public static String toString(Date d, String format) { return getFormatter(format).toString(d, format); } }
DateFormatUtil { public static String toString(Date d, String format) { return getFormatter(format).toString(d, format); } private  DateFormatUtil(); }
DateFormatUtil { public static String toString(Date d, String format) { return getFormatter(format).toString(d, format); } private  DateFormatUtil(); static Date parse(String s); static Date parse(String s, Date defaultDate); static String format(Date d); static String toString(Date d, String format); static Date toDate(String stringRep, String format); }
DateFormatUtil { public static String toString(Date d, String format) { return getFormatter(format).toString(d, format); } private  DateFormatUtil(); static Date parse(String s); static Date parse(String s, Date defaultDate); static String format(Date d); static String toString(Date d, String format); static Date toDate(String stringRep, String format);  }