- java.lang.Object
-
- ch.qos.logback.core.util.DatePatternToRegexUtil
-
public class DatePatternToRegexUtil extends Object
This class is concerned with computing a regex corresponding to a date pattern (inDateTimeFormatterformat).- Author:
- Ceki Gülcü
-
-
Constructor Summary
Constructors Constructor Description DatePatternToRegexUtil(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.
-
-
-
Constructor Detail
-
DatePatternToRegexUtil
public DatePatternToRegexUtil(String datePattern)
Create an instance using the symbols of the default locale.- Parameters:
datePattern- date pattern inDateTimeFormatterformat
-
DatePatternToRegexUtil
public DatePatternToRegexUtil(String datePattern, Locale locale)
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
-
-