SystemDateTimePatternManager { public static boolean isDate(String value) { if (checkDatesPreconditions(value)) return findOneDateTimePattern(DATE_PATTERN_GROUP_LIST, value).isPresent(); return false; }  static String[] getSupportedIsoLanguages(); static boolean isDate(String value); static boolean isTime(String value); static Map<String, Locale> getDatePatterns(String value); static Map<String, Locale> getDatePatterns(String value,
            SortedList<Map<Pattern, String>> frequentDatePatternsCache); static Map<String, Locale> getTimePatterns(String value); static DateTimeFormatter getDateTimeFormatterByPattern(String customPattern, Locale locale); static boolean isDate(String value, SortedList<Pair<Pattern, DateTimeFormatter>> orderedPatterns); static Set<String> getDatePatterns(); static boolean isMatchDateTimePattern(String value, String pattern, Locale locale); @Deprecated static boolean isMatchDateTimePattern(String value, String pattern);  }
@Test public void datesWithJapaneseChronologyWithNewReiwaEraInJapanese() { assumeTrue(ChronologyParameterManager.IS_REIWA_ERA_SUPPORTED); assertTrue(SystemDateTimePatternManager.isDate("0017-02-28 令和")); }
@Test public void datesWithJapaneseChronologyWithHeiseiEraInJapanese() { assumeTrue(ChronologyParameterManager.IS_REIWA_ERA_SUPPORTED); assertTrue(SystemDateTimePatternManager.isDate("0017-02-28 平成")); }
@Test public void datesWithMingoChronology() { assertTrue(SystemDateTimePatternManager.isDate("0017-02-28 民國")); assertTrue(SystemDateTimePatternManager.isDate("0017-02-28 民國前")); }
@Test public void datesWithHijrahChronology() { assertTrue(SystemDateTimePatternManager.isDate("1345-02-28 هـ")); }
@Test public void testTDC_4108() { assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29 08:49:29")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29.000Z")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29 08:49:29.000Z")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29Z")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29 08:49:29Z")); }
@Test public void validateUnusualTimeZones() { assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29+14:00")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29+05:30")); }
@Test public void validateDatesWithOffsetTimeZones() { assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29+0200")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29T08:49:29+01")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29 08:49:29+0200")); assertTrue(SystemDateTimePatternManager.isDate("2020-04-29 08:49:29+01")); }
@Test public void datesWithThaiBuddhistChronology() { assertTrue(SystemDateTimePatternManager.isDate("1345-02-28 พ.ศ.")); assertTrue(SystemDateTimePatternManager.isDate("1345-02-28 ปีก่อนคริสต์กาลที่")); }
@Test public void BadMonthName_TDQ13347() { assertFalse(SystemDateTimePatternManager.isDate("01 TOTO 2015")); assertTrue(SystemDateTimePatternManager.isDate("01 JANUARY 2015")); }