public abstract class AbstractFormater extends Object implements Formatter, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Locale |
locale
语言环境
|
protected String |
pattern
匹配规则
|
protected TimeZone |
timeZone
时区
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFormater(String pattern,
TimeZone timeZone,
Locale locale)
构造,内部使用
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Locale |
getLocale()
获得 日期地理位置
|
String |
getPattern()
获得日期格式化或者转换的格式
|
TimeZone |
getTimeZone()
获得时区
|
int |
hashCode() |
protected final String pattern
protected final TimeZone timeZone
protected final Locale locale
public String getPattern()
FormattergetPattern in interface FormatterSimpleDateFormat兼容的格式public TimeZone getTimeZone()
FormattergetTimeZone in interface FormatterTimeZoneCopyright © 2020. All rights reserved.