@Test(expected = ParseException.class) public void parseXep0082MissingTzd() throws ParseException { XmppDateTime.parseXEP0082Date("2017-07-11T18:31:34"); }
public static Date parseXEP0082Date(String dateString) throws ParseException { for (PatternCouplings coupling : couplings) { Matcher matcher = coupling.pattern.matcher(dateString); if (matcher.matches()) { return coupling.formatter.parse(dateString); } } return dateTimeNoMillisFormatter.parse(dateString); }
XmppDateTime { public static Date parseXEP0082Date(String dateString) throws ParseException { for (PatternCouplings coupling : couplings) { Matcher matcher = coupling.pattern.matcher(dateString); if (matcher.matches()) { return coupling.formatter.parse(dateString); } } return dateTimeNoMillisFormatter.parse(dateString); } }
XmppDateTime { public static Date parseXEP0082Date(String dateString) throws ParseException { for (PatternCouplings coupling : couplings) { Matcher matcher = coupling.pattern.matcher(dateString); if (matcher.matches()) { return coupling.formatter.parse(dateString); } } return dateTimeNoMillisFormatter.parse(dateString); }  }
XmppDateTime { public static Date parseXEP0082Date(String dateString) throws ParseException { for (PatternCouplings coupling : couplings) { Matcher matcher = coupling.pattern.matcher(dateString); if (matcher.matches()) { return coupling.formatter.parse(dateString); } } return dateTimeNoMillisFormatter.parse(dateString); }  static Date parseXEP0082Date(String dateString); static Date parseDate(String dateString); static String formatXEP0082Date(Date date); static String convertXep82TimezoneToRfc822(String dateString); static String convertRfc822TimezoneToXep82(String dateString); static String asString(TimeZone timeZone); }
XmppDateTime { public static Date parseXEP0082Date(String dateString) throws ParseException { for (PatternCouplings coupling : couplings) { Matcher matcher = coupling.pattern.matcher(dateString); if (matcher.matches()) { return coupling.formatter.parse(dateString); } } return dateTimeNoMillisFormatter.parse(dateString); }  static Date parseXEP0082Date(String dateString); static Date parseDate(String dateString); static String formatXEP0082Date(Date date); static String convertXep82TimezoneToRfc822(String dateString); static String convertRfc822TimezoneToXep82(String dateString); static String asString(TimeZone timeZone);  }