That is the main Java API for managing dates, times, instants, and durations. The package includes:
- enum Month
- enum DayOfWeek
- The Clock class, which instantly returns the current date and time using a time zone
- The Duration and Period classes represent and compare amounts of time in different time units
- The LocalDate, LocalTime, LocalDateTime classes represent dates and times without time zones
- The ZonedDateTime class represents date-time with a time zone
- The ZoneId class identifies a time zone such as America/Chicago
- Some other classes that support date and time manipulation
The java.time.format.DateTimeFormatter class allows you to present date and time in accordance with International Standards Organization (ISO) formats and ...