Java 8 a introduit le package java.time (JSR-310) – une API Date-Heure moderne, immuable et thread-safe. Il a remplacé java.util.Date et Calendar, notoirement défectueux. Les types principaux sont LocalDate (date uniquement), LocalTime (heure uniquement), LocalDateTime (les deux), ZonedDateTime (avec fuseau horaire) et Instant (horodatage de la machine).

LocalDate - date sans heure
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.