软件包 | 描述 |
---|---|
java.text |
提供用于处理独立于自然语言的方式处理文本、日期、数字和消息的类和接口。
|
java.text.spi |
在java.text包类服务提供程序类。
|
Modifier and Type | Method and Description |
---|---|
DateFormatSymbols |
SimpleDateFormat.getDateFormatSymbols()
获取此日期格式的日期和时间格式符号的副本。
|
static DateFormatSymbols |
DateFormatSymbols.getInstance()
获取默认区域设置的
DateFormatSymbols 实例。
|
static DateFormatSymbols |
DateFormatSymbols.getInstance(Locale locale)
获取指定区域的
DateFormatSymbols 实例。
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleDateFormat.setDateFormatSymbols(DateFormatSymbols newFormatSymbols)
设置此日期格式的日期和时间格式符号。
|
Constructor and Description |
---|
SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols)
使用给定的模式和日期格式的符号构建了一个
SimpleDateFormat 。
|
Modifier and Type | Method and Description |
---|---|
abstract DateFormatSymbols |
DateFormatSymbolsProvider.getInstance(Locale locale)
返回指定区域设置一个新的
DateFormatSymbols 实例。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.