public class DateFormatManager extends Object
Modifier and Type | Field and Description |
---|---|
private DateFormat |
_dateFormat |
private Locale |
_locale |
private String |
_pattern |
private TimeZone |
_timeZone |
Constructor and Description |
---|
DateFormatManager() |
DateFormatManager(Locale locale) |
DateFormatManager(Locale locale,
String pattern) |
DateFormatManager(String pattern) |
DateFormatManager(TimeZone timeZone) |
DateFormatManager(TimeZone timeZone,
Locale locale) |
DateFormatManager(TimeZone timeZone,
Locale locale,
String pattern) |
DateFormatManager(TimeZone timeZone,
String pattern) |
Modifier and Type | Method and Description |
---|---|
private void |
configure() |
String |
format(Date date) |
String |
format(Date date,
String pattern) |
DateFormat |
getDateFormatInstance() |
Locale |
getLocale() |
String |
getOutputFormat()
Deprecated.
Use getPattern().
|
String |
getPattern() |
TimeZone |
getTimeZone() |
Date |
parse(String date) |
Date |
parse(String date,
String pattern) |
void |
setDateFormatInstance(DateFormat dateFormat) |
void |
setLocale(Locale locale) |
void |
setOutputFormat(String pattern)
Deprecated.
Use setPattern().
|
void |
setPattern(String pattern)
Set the pattern. i.e.
|
void |
setTimeZone(TimeZone timeZone) |
private DateFormat _dateFormat
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 TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public String getPattern()
public void setPattern(String pattern)
public String getOutputFormat()
public void setOutputFormat(String pattern)
public DateFormat getDateFormatInstance()
public void setDateFormatInstance(DateFormat dateFormat)
public Date parse(String date) throws ParseException
ParseException
public Date parse(String date, String pattern) throws ParseException
ParseException
private void configure()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses