Returning to the topic of time libraries in Java, I would recommend you to read the following article (which features really good examples), especially If you still get confused by the different types in java.time (Instant, LocalDateTime and so on) and are not sure how to use them properly.
#java #time
https://yawk.at/java.time/
#java #time
https://yawk.at/java.time/