@Test public void test_formatUTC() { Calendar c = Calendar.getInstance(); c.set(Calendar.YEAR, 2015); c.set(Calendar.MONTH, 0); c.set(Calendar.DAY_OF_MONTH, 1); c.set(Calendar.HOUR_OF_DAY, 1); c.set(Calendar.MINUTE, 1); c.set(Calendar.SECOND, 1); assertEquals("2015-01-01 01:01:01", DateUtil.formatUTC(c.getTime())); }
public static String formatUTC(Date date) { if (null == date) { return null; } return new SimpleDateFormat(FORMAT_DATETIME).format(date); }
DateUtil { public static String formatUTC(Date date) { if (null == date) { return null; } return new SimpleDateFormat(FORMAT_DATETIME).format(date); } }
DateUtil { public static String formatUTC(Date date) { if (null == date) { return null; } return new SimpleDateFormat(FORMAT_DATETIME).format(date); } private  DateUtil(); }
DateUtil { public static String formatUTC(Date date) { if (null == date) { return null; } return new SimpleDateFormat(FORMAT_DATETIME).format(date); } private  DateUtil(); static Date parseUTC(String dateString); static boolean validateUTCString(String utcDateString); static String formatUTC(Date date); static Date parse(String dateString, String format); }
DateUtil { public static String formatUTC(Date date) { if (null == date) { return null; } return new SimpleDateFormat(FORMAT_DATETIME).format(date); } private  DateUtil(); static Date parseUTC(String dateString); static boolean validateUTCString(String utcDateString); static String formatUTC(Date date); static Date parse(String dateString, String format);  }