You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PrettyTime codebase could be refactored to make use of the ChronoUnit enum and Duration and Period classes, instead of defining the current implementations manually.
The text was updated successfully, but these errors were encountered:
Isira-Seneviratne
changed the title
Make use of java.time's ChronoUnit and Duration.
Make use of java.time's ChronoUnit, Duration and Period.
Oct 31, 2022
Hi @Isira-Seneviratne thanks for the issue. Please feel free to submit a PR with these improvements, and thank you for pointing out the new APIs! I do think it would be a good idea to standardize on these.
The PrettyTime codebase could be refactored to make use of the
ChronoUnit
enum andDuration
andPeriod
classes, instead of defining the current implementations manually.The text was updated successfully, but these errors were encountered: