Programming with dates and times is essential to most applications. This course will teach you how to use the java.time library, introduced in Java 8, for handling dates, times, time periods, time zones, and daylight saving time transitions.
Handling dates and times is an essential part of most business and scientific applications. In this course, Programming with Dates and Times in Java, you will learn all about the much-needed new library in Java 8: the java.time API. First, you will learn the basic use of the core java.time classes. Next, you will discover how the library handles the complexities of time zones and daylight saving time transitions. Finally, you will explore the interconversion of java.time classes with other Java types and with database representations. When you are finished with this course, you will have a thorough knowledge of how to use this modern Java library for the fundamentally important problems of handling dates and times in your applications.
Maurice Naftalin is a Java Champion, author or co-author of two books on Java, and a three-times JavaOne Rockstar. He works as a developer and consultant, and over the last twenty years has trained thousands of students in intermediate and advanced Java topics.
Course Overview Hello, I'm Maurice Naftalin. Welcome to my course, Programming with Dates and Times in Java. I'm a Java Champion, working as a freelance trainer and developer, and I've been programming with Java from its very start. For most of that time, it's been tough to write Java programs using dates and times because there were many problems with the original library. Java 8 finally put that right with the high‑quality java.time API, which we'll study in detail on this course. Some of the major topics that we'll cover include the major classes of the library, representing dates and times, time zones, durations, and time periods, handling time zone and daylight saving time changes, parsing and formatting date‑time values, and testing programs that use dates and times. By the end of this course, you'll understand the ideas that underlie the design of the library, and you'll be ready to use it for calculating durations, persisting date‑time values in relational databases, communicating time‑critical data across time zones, and many other applications. Before beginning the course, you should be familiar with everyday use of Java, pre Java 8. Also, the course uses some Java 8 streams along the way, but those are explained as we go along. I hope you'll join me on this journey to learn date and time programming with this course, Programming with Dates and Times in Java, at Pluralsight.