ocpsoft/prettytime

Make use of java.time's ChronoUnit, Duration and Period.

Isira-Seneviratne opened this issue · 1 comments

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.