Skip navigation links
Java™ Platform
Standard Ed. 8

Package java.time.format

提供打印和解析日期和时间的类。

See: 描述

Package java.time.format Description

提供打印和解析日期和时间的类。

打印和解析基于DateTimeFormatter类。 实例通常由获得DateTimeFormatter ,然而DateTimeFormatterBuilder可以,如果需要更多的功率来使用。

本地化通过在格式化程序上调用withLocale(Locale)进行。 使用DecimalStyle进一步定制是可能的。

包装规格

除非另有说明,否则将null参数传递给此程序包中任何类或接口中的构造函数或方法将导致抛出NullPointerException Javadoc“@param”定义用于总结空行为。 “@throws NullPointerException ”没有在每个方法中明确记录。

所有计算应检查数字溢出,并抛出ArithmeticExceptionDateTimeException

从以下版本开始:
JDK1.8
Skip navigation links
Java™ Platform
Standard Ed. 8

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.

本帮助文档是使用 《谷歌翻译》翻译,请与英文版配合使用 by--QQ:654638585