@Test public void testParseWithSingleDigitTime() { assertEquals(DATE, parseHttpDate("Sunday, 6 Nov 1994 8:49:37 GMT")); Date _08_09_37 = new Date(TIMESTAMP - 40 * 60 * 1000); assertEquals(_08_09_37, parseHttpDate("Sunday, 6 Nov 1994 8:9:37 GMT")); assertEquals(_08_09_37, parseHttpDate("Sunday, 6 Nov 1994 8:09:37 GMT")); Date _08_09_07 = new Date(TIMESTAMP - (40 * 60 + 30) * 1000); assertEquals(_08_09_07, parseHttpDate("Sunday, 6 Nov 1994 8:9:7 GMT")); assertEquals(_08_09_07, parseHttpDate("Sunday, 6 Nov 1994 8:9:07 GMT")); }
public static Date parseHttpDate(CharSequence txt) { return parseHttpDate(txt, 0, txt.length()); }
DateFormatter { public static Date parseHttpDate(CharSequence txt) { return parseHttpDate(txt, 0, txt.length()); } }
DateFormatter { public static Date parseHttpDate(CharSequence txt) { return parseHttpDate(txt, 0, txt.length()); } private  DateFormatter(); }
DateFormatter { public static Date parseHttpDate(CharSequence txt) { return parseHttpDate(txt, 0, txt.length()); } private  DateFormatter(); static Date parseHttpDate(CharSequence txt); static Date parseHttpDate(CharSequence txt, int start, int end); static String format(Date date); static StringBuilder append(Date date, StringBuilder sb); void reset(); }
DateFormatter { public static Date parseHttpDate(CharSequence txt) { return parseHttpDate(txt, 0, txt.length()); } private  DateFormatter(); static Date parseHttpDate(CharSequence txt); static Date parseHttpDate(CharSequence txt, int start, int end); static String format(Date date); static StringBuilder append(Date date, StringBuilder sb); void reset();  }