@Test public void test_parse05a() { String date = "1204-06-10 08:10"; OffsetDateTime odt = new ESDateInput(date).parse(); assertEquals("01", "1204-06-10T08:10Z", odt.toString()); }
public OffsetDateTime parse() { OffsetDateTime date; if (null != (date = parseAsOffsetDateTime())) { return date; } if (null != (date = parseAsLocalDateTime())) { return date; } if (null != (date = parseAsLocalDate())) { return date; } if (null != (date = parseAsYearMonth())) { return date; } if (null != (date = parseAsYear())) { return date; } return null; }
ESDateInput { public OffsetDateTime parse() { OffsetDateTime date; if (null != (date = parseAsOffsetDateTime())) { return date; } if (null != (date = parseAsLocalDateTime())) { return date; } if (null != (date = parseAsLocalDate())) { return date; } if (null != (date = parseAsYearMonth())) { return date; } if (null != (date = parseAsYear())) { return date; } return null; } }
ESDateInput { public OffsetDateTime parse() { OffsetDateTime date; if (null != (date = parseAsOffsetDateTime())) { return date; } if (null != (date = parseAsLocalDateTime())) { return date; } if (null != (date = parseAsLocalDate())) { return date; } if (null != (date = parseAsYearMonth())) { return date; } if (null != (date = parseAsYear())) { return date; } return null; } ESDateInput(String dateString); }
ESDateInput { public OffsetDateTime parse() { OffsetDateTime date; if (null != (date = parseAsOffsetDateTime())) { return date; } if (null != (date = parseAsLocalDateTime())) { return date; } if (null != (date = parseAsLocalDate())) { return date; } if (null != (date = parseAsYearMonth())) { return date; } if (null != (date = parseAsYear())) { return date; } return null; } ESDateInput(String dateString); static String format(OffsetDateTime odt); static String format(Date date); static String[] getAcceptedDateFormats(); static OffsetDateTime convert(Date date); String toESFormat(); OffsetDateTime parse(); OffsetDateTime parseAsOffsetDateTime(); OffsetDateTime parseAsOffsetDateTime(String pattern); OffsetDateTime parseAsOffsetDateTime(DateTimeFormatter formatter); OffsetDateTime parseAsLocalDateTime(); OffsetDateTime parseAsLocalDateTime(String pattern); OffsetDateTime parseAsLocalDateTime(DateTimeFormatter formatter); OffsetDateTime parseAsLocalDate(); OffsetDateTime parseAsLocalDate(String pattern); OffsetDateTime parseAsLocalDate(DateTimeFormatter formatter); OffsetDateTime parseAsYearMonth(); OffsetDateTime parseAsYear(); Date toJavaUtilDate(); }
ESDateInput { public OffsetDateTime parse() { OffsetDateTime date; if (null != (date = parseAsOffsetDateTime())) { return date; } if (null != (date = parseAsLocalDateTime())) { return date; } if (null != (date = parseAsLocalDate())) { return date; } if (null != (date = parseAsYearMonth())) { return date; } if (null != (date = parseAsYear())) { return date; } return null; } ESDateInput(String dateString); static String format(OffsetDateTime odt); static String format(Date date); static String[] getAcceptedDateFormats(); static OffsetDateTime convert(Date date); String toESFormat(); OffsetDateTime parse(); OffsetDateTime parseAsOffsetDateTime(); OffsetDateTime parseAsOffsetDateTime(String pattern); OffsetDateTime parseAsOffsetDateTime(DateTimeFormatter formatter); OffsetDateTime parseAsLocalDateTime(); OffsetDateTime parseAsLocalDateTime(String pattern); OffsetDateTime parseAsLocalDateTime(DateTimeFormatter formatter); OffsetDateTime parseAsLocalDate(); OffsetDateTime parseAsLocalDate(String pattern); OffsetDateTime parseAsLocalDate(DateTimeFormatter formatter); OffsetDateTime parseAsYearMonth(); OffsetDateTime parseAsYear(); Date toJavaUtilDate(); static final String ES_DATE_FORMAT; }