javatimeLocalDateTime
The java.time.LocalDateTime class is a part of Java's Date and Time API, introduced in Java 8. It represents a date and time without a time zone in the ISO-8601 format. This means it holds information about the year, month, day, hour, minute, second, and nanosecond, but it does not specify which time zone these values refer to.
LocalDateTime is an immutable class, meaning once an instance is created, its values cannot be changed. Instead,
To create a LocalDateTime object, one can use static factory methods such as now() to get the
Common operations include accessing individual date and time components, adding or subtracting durations (using classes like