@Test public void test_parseUTC() { Calendar c = Calendar.getInstance(); Date date = DateUtil.parseUTC("2015-01-01T01:01:01Z"); c.setTime(date); assertEquals(2015, c.get(Calendar.YEAR)); assertEquals(0, c.get(Calendar.MONTH)); assertEquals(1, c.get(Calendar.DAY_OF_MONTH)); assertEquals(1, c.get(Calendar.HOUR_OF_DAY)); assertEquals(1, c.get(Calendar.MINUTE)); assertEquals(1, c.get(Calendar.SECOND)); }
public static Date parseUTC(String dateString) { return parse(dateString, FORMAT_UTC); }
DateUtil { public static Date parseUTC(String dateString) { return parse(dateString, FORMAT_UTC); } }
DateUtil { public static Date parseUTC(String dateString) { return parse(dateString, FORMAT_UTC); } private  DateUtil(); }
DateUtil { public static Date parseUTC(String dateString) { return parse(dateString, FORMAT_UTC); } 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 Date parseUTC(String dateString) { return parse(dateString, FORMAT_UTC); } private  DateUtil(); static Date parseUTC(String dateString); static boolean validateUTCString(String utcDateString); static String formatUTC(Date date); static Date parse(String dateString, String format);  }