LocalDateTimeminusDayslong
LocalDateTime is a date-time value without a time zone, used in the Java java.time package. It combines a date and a time but does not carry any offset or time zone information.
Internally, it stores year, month, day, hour, minute, second, and nanosecond. The object is immutable, meaning
Creation is flexible: you can obtain the current value with LocalDateTime.now(), construct a specific moment with
Time zone independence means that to represent an exact moment in time you must attach a zone
Arithmetic and comparisons are supported through plus and minus methods (for example plusDays, minusHours) and through
Related types include LocalDate, LocalTime, ZonedDateTime, OffsetDateTime, and Instant. Limitation-wise, it should not be used when