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.
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.