public class ConcurrentDateFormat extends Object
Constructor and Description |
---|
ConcurrentDateFormat(String pattern,
Locale locale,
TimeZone timeZone,
int maxCacheSize)
Note: This constructor may not support all locales.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Date date)
Formats a Date into a date/time string.
|
String |
toString() |
public ConcurrentDateFormat(String pattern, Locale locale, TimeZone timeZone, int maxCacheSize)
DateFormat
class.pattern
- the pattern describing the date and time patternlocale
- the locale whose date pattern symbols should be usedtimeZone
- the timezone used by the underlying calendarmaxCacheSize
- NullPointerException
- if the given pattern or locale is nullIllegalArgumentException
- if the given pattern is invalidCopyright © 2014–2019. All rights reserved.