The class LocalDateTime is a combination of LocalDate and LocalTime that keeps such values as 2017-12-03T22:30. It still doesn’t store information on a time-zone. It could be used to store a date and time of a transaction in a payment system. As in the LocalTime class, time is represented to nanosecond precision.
Time is a fundamental notion not only in human life but in programming as well. Of course, Java provides some tools for working with temporal entities. We’ll start with such units of time measurement as days (or dates).
There’s a special class to represent the time of day in Java. TheLocalTime class represents daytime in the hours-minutes-seconds format, such as 06:30 or 11:45:30. It doesn’t store information about the date or the time zone. Time is stored with nanosecond precision (for example, 13:45:30.123456789). TheLocalTime class could be used to store things like the opening and closing hours of a shop or a train schedule.