<div> JavaScript is disabled on your browser.
Skip navigation links
Java™ Platform
Standard Ed. 8
compact1

Package java.time.format

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

See: 描述

Package java.time.format Description

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

打印和解析是基于DateTimeFormatter类。通常得到DateTimeFormatter实例,但是DateTimeFormatterBuilder可如果需要更多的功率使用。

定位发生在格式化程序调用withLocale(Locale)。进一步的定制是可能使用DecimalStyle

包装规格

除非另有说明,通过空参数的构造函数或方法的任何类或接口在这个包会导致NullPointerException被。Javadoc“@参数”的定义是用于概括无效行为。“@投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