Sunday, September 30, 2018

Working With LocalDate, LocalTime, and LocalDateTime

Java 8 had a major change for the date and time APIs, which was the inclusion of Joda Time APIs into the JDK under the JSR 310: Date and Time API. This JSR was lead by Stephen Colebourne, the creator of Joda Time.

There are many amazing APIs for working with date and time. In this article I will look at the most commonly used ones: java.time.LocalDate, java.time.LocalTime, and java.time.LocalDateTime. These represent the date and time values independent of the timezone. So, they rely on the system clock to capture the values.



from DZone.com Feed https://ift.tt/2OYi8Zn

No comments:

Post a Comment