### Question:
ParsingUtils { public static long parseDateTime(String xmlDateTime) { try { Calendar cal = DatatypeConverter.parseDateTime(xmlDateTime); cal.set(Calendar.MILLISECOND, 0); long timestamp = cal.getTimeInMillis(); return timestamp; } catch (RuntimeException e) { e.printStackTrace(); throw new RuntimeException( String.format("Unable to parse timestamp '%s'", xmlDateTime), e); } }  static long parseDateTime(String xmlDateTime); static Envelope parseWGS84Bounds(String minLat, String minLon, String maxLat,
            String maxLon);  }### Answer:
@Test public void test() { long dateTime = parseDateTime("2009-10-11T20:02:09Z"); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT")); cal.setTimeInMillis(dateTime); assertEquals(2009, cal.get(Calendar.YEAR)); assertEquals(9, cal.get(Calendar.MONTH)); assertEquals(11, cal.get(Calendar.DAY_OF_MONTH)); assertEquals(20, cal.get(Calendar.HOUR_OF_DAY)); assertEquals(2, cal.get(Calendar.MINUTE)); assertEquals(9, cal.get(Calendar.SECOND)); assertEquals(0, cal.get(Calendar.MILLISECOND)); }