Package | Description |
---|---|
org.apache.logging.log4j.core.util.datetime |
Log4j 2 date formatting classes.
|
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,
Locale locale)
Gets a date formatter instance using the specified style and
locale in the default time zone.
|
static FastDateFormat |
FastDateFormat.getDateInstance(int style,
TimeZone timeZone)
Gets a date formatter instance using the specified style and
time zone in the default locale.
|
static FastDateFormat |
FastDateFormat.getDateInstance(int style,
TimeZone timeZone,
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,
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,
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,
TimeZone timeZone,
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(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(String pattern)
Gets a formatter instance using the specified pattern in the
default locale.
|
static FastDateFormat |
FastDateFormat.getInstance(String pattern,
Locale locale)
Gets a formatter instance using the specified pattern and
locale.
|
static FastDateFormat |
FastDateFormat.getInstance(String pattern,
TimeZone timeZone)
Gets a formatter instance using the specified pattern and
time zone.
|
static FastDateFormat |
FastDateFormat.getInstance(String pattern,
TimeZone timeZone,
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,
Locale locale)
Gets a time formatter instance using the specified style and
locale in the default time zone.
|
static FastDateFormat |
FastDateFormat.getTimeInstance(int style,
TimeZone timeZone)
Gets a time formatter instance using the specified style and
time zone in the default locale.
|
static FastDateFormat |
FastDateFormat.getTimeInstance(int style,
TimeZone timeZone,
Locale locale)
Gets a time formatter instance using the specified style, time
zone and locale.
|
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.