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
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.