Monday, September 14, 2015

What are new changes in java 8 for Date API?

Java8 Introduced new classes , easy to use

java.time.LocalDate;
java.time.LocalTime;
java.time.LocalDateTime;

Use the above Date Time classes with below arguments for specific need
java.time.Month;
java.time.ZoneId;
java.time.LocalTime;
java.time.ZoneOffset;

java.time.Instant; Obtains the current instant from the system clock.
java.time.Duration;  Obtains a Duration representing a number of standard 24 hour days.


1 comment :