Package it.tidalwave.util
Class LocalizedDateTimeFormatters
- java.lang.Object
-
- it.tidalwave.util.LocalizedDateTimeFormatters
-
public final class LocalizedDateTimeFormatters extends java.lang.Object
A factory class for localizedDateTimeFormatter
s in various flavours, specified by theFormatStyle
. This class is especially useful for migration to JDK 9+, where the default behaviour ofDateTimeFormatter.ofLocalizedDate/DateTime(...)
has changed. At the moment only locales for English and Italian are supported.- Since:
- 3.1-ALPHA-4
- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description LocalizedDateTimeFormatters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.time.format.DateTimeFormatter
getDateTimeFormatterFor(java.time.format.FormatStyle style, java.util.Locale locale)
Returns a formatter.
-