@Test public void testParse() { String string = "2015-05-13T11:08:01Z"; Date date = ParseImpreciseDateFormat.getInstance().parse(string); assertEquals(1431515281000L, date.getTime()); }
Date parse(String dateString) { synchronized (lock) { try { return dateFormat.parse(dateString); } catch (java.text.ParseException e) { PLog.e(TAG, "could not parse date: " + dateString, e); return null; } } }
ParseImpreciseDateFormat { Date parse(String dateString) { synchronized (lock) { try { return dateFormat.parse(dateString); } catch (java.text.ParseException e) { PLog.e(TAG, "could not parse date: " + dateString, e); return null; } } } }
ParseImpreciseDateFormat { Date parse(String dateString) { synchronized (lock) { try { return dateFormat.parse(dateString); } catch (java.text.ParseException e) { PLog.e(TAG, "could not parse date: " + dateString, e); return null; } } } private  ParseImpreciseDateFormat(); }
ParseImpreciseDateFormat { Date parse(String dateString) { synchronized (lock) { try { return dateFormat.parse(dateString); } catch (java.text.ParseException e) { PLog.e(TAG, "could not parse date: " + dateString, e); return null; } } } private  ParseImpreciseDateFormat(); static ParseImpreciseDateFormat getInstance(); }
ParseImpreciseDateFormat { Date parse(String dateString) { synchronized (lock) { try { return dateFormat.parse(dateString); } catch (java.text.ParseException e) { PLog.e(TAG, "could not parse date: " + dateString, e); return null; } } } private  ParseImpreciseDateFormat(); static ParseImpreciseDateFormat getInstance();  }