SystemDateTimePatternManager { public static boolean isTime(String value) { return StringUtils.isNotEmpty(value) && value.length() >= 4 && value.length() <= 24 && checkEnoughDigits(value) && findOneDateTimePattern(TIME_PATTERN_GROUP_LIST, value).isPresent(); }  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 validateTimesWithOffsetTimeZones() { assertTrue(SystemDateTimePatternManager.isTime("08:49:29+02:00")); assertTrue(SystemDateTimePatternManager.isTime("08:49:29+0200")); assertTrue(SystemDateTimePatternManager.isTime("08:49:29+01")); assertTrue(SystemDateTimePatternManager.isTime("8.49.29+02:00")); assertTrue(SystemDateTimePatternManager.isTime("8.49.29+0200")); assertTrue(SystemDateTimePatternManager.isTime("8.49.29+01")); }