Switch to using the java.time package instead of the legacy Date and Calendar classes. The new API offers several advantages over the legacy API.
Reuse a time difference calculation method that was duplicated across multiple classes and improve the calculation using java.time's functionality.
* Switch to using the `java.time` package instead of the legacy Date and Calendar classes. The new API offers [several advantages](https://www.baeldung.com/migrating-to-java-8-date-time-api) over the legacy API.
* Reuse a time difference calculation method that was duplicated across multiple classes and improve the calculation using `java.time`'s functionality.
Koitharu
(Migrated from github.com)
reviewed 2 years ago
Isira-Seneviratne
(Migrated from github.com)
reviewed 2 years ago
Koitharu
(Migrated from github.com)
reviewed 2 years ago
Koitharu
(Migrated from github.com)
approved these changes 2 years ago
java.timepackage instead of the legacy Date and Calendar classes. The new API offers several advantages over the legacy API.java.time's functionality.Reviewers
3f2e32dcc2.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.