Javatime 简明教程

java.time package Tutorial

Java 8 在 java.time 包下引入了新的日期和时间 API。此参考将带你了解 java.time 包中可用的简单实用方法。

Java 8 has introduced new Date and Time API under java.time package. This reference will take you through simple and practical methods available in java.time package.

Audience

此参考已为初学者准备,以帮助他们了解与 java.timepackage 中的全部方法相关的基本功能。

This reference has been prepared for the beginners to help them understand the basic functionality related to all the methods available in java.timepackage.

Prerequisites

在开始使用此参考中给出的各种类型的示例进行练习之前,我假设您已经了解基本的 Java 编程。

Before you start doing practice with various types of examples given in this reference, I’m making an assumption that you are already aware of basic Java Programming.