类 | 描述 |
---|---|
DateTimeFormatter |
印刷日期时间对象格式化和解析。
|
DateTimeFormatterBuilder |
生成器创建日期时间格式。
|
DecimalStyle |
日期和时间格式中使用的本地化的十进制样式。
|
Enum | 描述 |
---|---|
FormatStyle |
对一个本地化的日期样式枚举,时间或日期时间格式。
|
ResolverStyle |
枚举不同的方法来解决日期和时间。
|
SignStyle |
处理正/负符号的方法的枚举。
|
TextStyle |
文本格式和解析的样式的枚举。
|
异常 | 描述 |
---|---|
DateTimeParseException |
在解析过程中发生错误时引发的异常。
|
提供打印和解析日期和时间的类。
打印和解析是基于DateTimeFormatter
类。通常得到DateTimeFormatter
实例,但是DateTimeFormatterBuilder
可如果需要更多的功率使用。
定位发生在格式化程序调用withLocale(Locale)
。进一步的定制是可能使用DecimalStyle
。
除非另有说明,通过空参数的构造函数或方法的任何类或接口在这个包会导致NullPointerException
被。Javadoc“@参数”的定义是用于概括无效行为。“@投NullPointerException
”是没有明确的记录在每一个方法。
所有的计算应检查数值溢出和扔一个ArithmeticException
或DateTimeException
。
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.