Package | Description |
---|---|
org.apache.logging.log4j.core.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
org.apache.logging.log4j.core.util.datetime |
Log4j 2 date formatting classes.
|
Modifier and Type | Field and Description |
---|---|
private FastDateFormat |
DatePatternConverter.PatternFormatter.fastDateFormat |
Constructor and Description |
---|
PatternFormatter(FastDateFormat fastDateFormat) |
Modifier and Type | Field and Description |
---|---|
private FastDateFormat |
FixedDateFormat.fastDateFormat |
Modifier and Type | Field and Description |
---|---|
private static FormatCache<FastDateFormat> |
FastDateFormat.cache |
Modifier and Type | Method and Description |
---|---|
static FastDateFormat |
FastDateFormat.getDateInstance(int style)
Gets a date formatter instance using the specified style in the
default time zone and locale.
|
static FastDateFormat |
FastDateFormat.getDateInstance(int style,
java.util.Locale locale)
Gets a date formatter instance using the specified style and
locale in the default time zone.
|
static FastDateFormat |
FastDateFormat.getDateInstance(int style,
java.util.TimeZone timeZone)
Gets a date formatter instance using the specified style and
time zone in the default locale.
|
static FastDateFormat |
FastDateFormat.getDateInstance(int style,
java.util.TimeZone timeZone,
java.util.Locale locale)
Gets a date formatter instance using the specified style, time
zone and locale.
|
static FastDateFormat |
FastDateFormat.getDateTimeInstance(int dateStyle,
int timeStyle)
Gets a date/time formatter instance using the specified style
in the default time zone and locale.
|
static FastDateFormat |
FastDateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale locale)
Gets a date/time formatter instance using the specified style and
locale in the default time zone.
|
static FastDateFormat |
FastDateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.TimeZone timeZone)
Gets a date/time formatter instance using the specified style and
time zone in the default locale.
|
static FastDateFormat |
FastDateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.TimeZone timeZone,
java.util.Locale locale)
Gets a date/time formatter instance using the specified style,
time zone and locale.
|
FastDateFormat |
FixedDateFormat.FixedFormat.getFastDateFormat()
Returns the
FastDateFormat object for formatting the date part of the pattern or null if the
pattern does not have a date part. |
FastDateFormat |
FixedDateFormat.FixedFormat.getFastDateFormat(java.util.TimeZone tz)
Returns the
FastDateFormat object for formatting the date part of the pattern or null if the
pattern does not have a date part. |
static FastDateFormat |
FastDateFormat.getInstance()
Gets a formatter instance using the default pattern in the
default locale.
|
static FastDateFormat |
FastDateFormat.getInstance(java.lang.String pattern)
Gets a formatter instance using the specified pattern in the
default locale.
|
static FastDateFormat |
FastDateFormat.getInstance(java.lang.String pattern,
java.util.Locale locale)
Gets a formatter instance using the specified pattern and
locale.
|
static FastDateFormat |
FastDateFormat.getInstance(java.lang.String pattern,
java.util.TimeZone timeZone)
Gets a formatter instance using the specified pattern and
time zone.
|
static FastDateFormat |
FastDateFormat.getInstance(java.lang.String pattern,
java.util.TimeZone timeZone,
java.util.Locale locale)
Gets a formatter instance using the specified pattern, time zone
and locale.
|
static FastDateFormat |
FastDateFormat.getTimeInstance(int style)
Gets a time formatter instance using the specified style in the
default time zone and locale.
|
static FastDateFormat |
FastDateFormat.getTimeInstance(int style,
java.util.Locale locale)
Gets a time formatter instance using the specified style and
locale in the default time zone.
|
static FastDateFormat |
FastDateFormat.getTimeInstance(int style,
java.util.TimeZone timeZone)
Gets a time formatter instance using the specified style and
time zone in the default locale.
|
static FastDateFormat |
FastDateFormat.getTimeInstance(int style,
java.util.TimeZone timeZone,
java.util.Locale locale)
Gets a time formatter instance using the specified style, time
zone and locale.
|