java.lang.Object |
↳ |
org.apache.log4j.lf5.util.DateFormatManager |
Class Overview
Date format manager.
Utility class to help manage consistent date formatting and parsing.
It may be advantageous to have multiple DateFormatManagers per
application. For example, one for handling the output (formatting) of
dates, and another one for handling the input (parsing) of dates.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
DateFormatManager
()
public
DateFormatManager
(TimeZone timeZone)
public
DateFormatManager
(Locale locale)
public
DateFormatManager
(String pattern)
public
DateFormatManager
(TimeZone timeZone, Locale locale)
public
DateFormatManager
(TimeZone timeZone, String pattern)
public
DateFormatManager
(Locale locale, String pattern)
public
DateFormatManager
(TimeZone timeZone, Locale locale, String pattern)
Public Methods
public
String
format
(Date date)
public
String
format
(Date date, String pattern)
public
synchronized
DateFormat
getDateFormatInstance
()
public
synchronized
Locale
getLocale
()
public
synchronized
String
getOutputFormat
()
This method is deprecated.
Use getPattern().
This method has been deprecated in favour of getPattern().
public
synchronized
String
getPattern
()
public
synchronized
TimeZone
getTimeZone
()
public
Date
parse
(String date)
public
Date
parse
(String date, String pattern)
public
synchronized
void
setDateFormatInstance
(DateFormat dateFormat)
public
synchronized
void
setLocale
(Locale locale)
public
synchronized
void
setOutputFormat
(String pattern)
This method is deprecated.
Use setPattern().
This method has been deprecated in favour of setPattern().
public
synchronized
void
setPattern
(String pattern)
Set the pattern. i.e. "EEEEE, MMMMM d, yyyy hh:mm aaa"
public
synchronized
void
setTimeZone
(TimeZone timeZone)