@Test public void testParseDateRoundtrip() { Date now = new Date((System.currentTimeMillis() / 1000) * 1000); String printed = URLFetchUtils.DATE_FORMAT.print(now.getTime()); assertEquals(now.getTime(), URLFetchUtils.parseDate(printed).getTime()); }
static Date parseDate(String dateString) { try { return DATE_FORMAT.parseDateTime(dateString).toDate(); } catch (IllegalArgumentException e) { return null; } }
URLFetchUtils { static Date parseDate(String dateString) { try { return DATE_FORMAT.parseDateTime(dateString).toDate(); } catch (IllegalArgumentException e) { return null; } } }
URLFetchUtils { static Date parseDate(String dateString) { try { return DATE_FORMAT.parseDateTime(dateString).toDate(); } catch (IllegalArgumentException e) { return null; } } private  URLFetchUtils(); }
URLFetchUtils { static Date parseDate(String dateString) { try { return DATE_FORMAT.parseDateTime(dateString).toDate(); } catch (IllegalArgumentException e) { return null; } } private  URLFetchUtils();  }
URLFetchUtils { static Date parseDate(String dateString) { try { return DATE_FORMAT.parseDateTime(dateString).toDate(); } catch (IllegalArgumentException e) { return null; } } private  URLFetchUtils();   }