© Kishori Sharan and Adam L. Davis 2022
K. Sharan, A. L. DavisBeginning Java 17 Fundamentalshttps://doi.org/10.1007/978-1-4842-7307-4_16

16. Dates and Times

Kishori Sharan1   and Adam L. Davis2
(1)
Montgomery, AL, USA
(2)
Oviedo, FL, USA
 
In this chapter, you will learn:
  • What the Java Date-Time API is

  • The design principles behind the Date-Time API

  • The evolution of timekeeping, time zones, and Daylight Savings Time (DST)

  • The ISO-8601 standard for date, time, and datetime keeping

  • How to represent date, time, and datetime using the Date-Time API classes and how to query, adjust, format, and parse them

  • How to use the legacy Date API

  • How to interoperate between the legacy and new Date-Time APIs

The Date-Time API was introduced in Java 8 and has been enhanced since ...

Get Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 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.