@Test public void testDateParser_toDate_Secs_Epoc() throws Exception { Date date = new Date(System.currentTimeMillis() - 3600); String datetime = String.valueOf(new BigDecimal(date.getTime()).divide(new BigDecimal(1000), RoundingMode.HALF_UP).longValue()); assertNotNull(DateFormatUtil.toDate(datetime, DateFormatUtil.CustomDateFormat.SECONDS_SINCE_EPOCH.name())); }
public static Date toDate(String stringRep, String format) throws ParseException { return getFormatter(format).toDate(stringRep, format); }
DateFormatUtil { public static Date toDate(String stringRep, String format) throws ParseException { return getFormatter(format).toDate(stringRep, format); } }
DateFormatUtil { public static Date toDate(String stringRep, String format) throws ParseException { return getFormatter(format).toDate(stringRep, format); } private  DateFormatUtil(); }
DateFormatUtil { public static Date toDate(String stringRep, String format) throws ParseException { return getFormatter(format).toDate(stringRep, 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 Date toDate(String stringRep, String format) throws ParseException { return getFormatter(format).toDate(stringRep, 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);  }