public class PreJava9DateFormatProvider
extends java.lang.Object
Constructor and Description |
---|
PreJava9DateFormatProvider() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
getDateFormatPattern(int style) |
private static java.lang.String |
getDatePartOfDateTimePattern(int dateStyle) |
private static java.lang.String |
getTimePartOfDateTimePattern(int timeStyle) |
static java.text.DateFormat |
getUSDateFormat(int style)
Returns the same DateFormat as
DateFormat.getDateInstance(style, Locale.US) in Java 8 or below. |
static java.text.DateFormat |
getUSDateTimeFormat(int dateStyle,
int timeStyle)
Returns the same DateFormat as
DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.US)
in Java 8 or below. |
public static java.text.DateFormat getUSDateFormat(int style)
DateFormat.getDateInstance(style, Locale.US)
in Java 8 or below.public static java.text.DateFormat getUSDateTimeFormat(int dateStyle, int timeStyle)
DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.US)
in Java 8 or below.private static java.lang.String getDateFormatPattern(int style)
private static java.lang.String getDatePartOfDateTimePattern(int dateStyle)
private static java.lang.String getTimePartOfDateTimePattern(int timeStyle)