Skip to Main Content
Java 8 in Action
book

Java 8 in Action

by Mario Fusco, Alan Mycroft, Raoul-Gabriel Urma
August 2014
Intermediate to advanced content levelIntermediate to advanced
424 pages
13h 50m
English
Manning Publications
Content preview from Java 8 in Action

Chapter 12. New Date and Time API

This chapter covers

  • Why we needed a new date and time library in Java 8
  • Representing date and time for both humans and machines
  • Defining an amount of time
  • Manipulating, formatting, and parsing dates
  • Dealing with different time zones and calendars

The Java API includes many useful components to help you build complex applications. Unfortunately, the Java API isn’t always perfect. We believe the majority of experienced Java developers will agree that date and time support before Java 8 was far from ideal. Don’t worry, though; Java 8 introduces a brand new Date and Time API to tackle this issue.

In Java 1.0 the only support for date and time was the java.util.Date class. Despite its name, this class doesn’t ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java 8 Lambdas and Streams

Java 8 Lambdas and Streams

Madhusudhan Konda
Modern Java in Action

Modern Java in Action

Raoul-Gabriel Urma, Mario Fusco, Alan Mycroft
Java 8 Lambdas

Java 8 Lambdas

Richard Warburton

Publisher Resources

ISBN: 9781617291999Supplemental ContentPublisher SupportOtherPublisher WebsiteErrata PageSupplemental ContentPurchase Link