DATE & TIME API: Java 8 LocalDateTime
LocalDateTime is an immutable date-time object that represents a date-time with default format as yyyy-MM-dd-HH-mm-ss.zzz. It provides a factory method that takes LocalDate and LocalTime input arguments to create LocalDateTime instance.
we have seen that if we provide invalid arguments for creating Date/Time, then it throws java.time.DateTimeException, which is a RuntimeException so we don’t need to explicitly catch it.
we can get Date/Time data by passing ZoneId, you can get the list of supported ZoneId values from its JavaDoc.
Sur cette page du site, vous pouvez voir la vidéo en ligne DATE & TIME API: Java 8 LocalDateTime | Java 8 Version durée online en bonne qualité , qui a été Téléchargé par l'utilisateur Testing Tutorialspoint 24 août 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 68 fois et il a aimé 2 téléspectateurs. Bon visionnage!