Class DatePatternToRegexUtil
java.lang.Object
ch.qos.logback.core.util.DatePatternToRegexUtil
This class is concerned with computing a regex corresponding to a date
pattern (in
DateTimeFormatter format).- Author:
- Ceki Gülcü
-
Constructor Summary
ConstructorsConstructorDescriptionDatePatternToRegexUtil(String datePattern) Create an instance using the symbols of the default locale.DatePatternToRegexUtil(String datePattern, Locale locale) Create an instance using the symbols of the given locale. -
Method Summary
-
Constructor Details
-
DatePatternToRegexUtil
Create an instance using the symbols of the default locale.- Parameters:
datePattern- date pattern inDateTimeFormatterformat
-
DatePatternToRegexUtil
Create an instance using the symbols of the given locale.- Parameters:
datePattern- date pattern inDateTimeFormatterformatlocale- the locale whose month, weekday and am/pm symbols are used- Since:
- 1.7.0
-
-
Method Details
-
toRegex
-