11. Date and Time

Image

11.1 Basic Date and Time Concepts

Java 8 introduced a new comprehensive API for handling temporal concepts. In this chapter, we primarily concentrate on classes that represent the date, time, and period. The Java 8 API also provides support for formatting and parsing temporal objects. These classes are all based on the ISO calendar system, which is the de facto world calendar. The Date and Time API is fairly comprehensive, and includes support for other temporal concepts such as instants, durations, offsets, time zones, and different calendars—topics that are beyond the scope of this book.

We will use the term temporal objects ...

Get A Programmer’s Guide to Java® SE 8 Oracle Certified Associate (OCA) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.