Documentation

The Java™ Tutorials

Trail: Date Time日期时间

The Date-Time package, java.time, introduced in the Java SE 8 release, provides a comprehensive model for date and time and was developed under JSR 310: Date and Time API.JavaSE8发行版中引入的日期时间包java.time提供了日期和时间的综合模型,是根据JSR 310: Date and Time API开发的。Although java.time is based on the International Organization for Standardization (ISO) calendar system, commonly used global calendars are also supported.虽然java.time基于国际标准化组织(ISO)日历系统,但也支持常用的全局日历。

This trail covers the fundamentals of using the ISO-based classes to represent date and time and to manipulate date and time values.本教程介绍了使用基于ISO的类表示日期和时间以及操作日期和时间值的基础知识。


Previous page: Beginning of Tutorial
Next page: Date-Time Overview