You could use prettyTime.calculatePreciseDuration(final Date then), which returns a list of Duration objects – all duration objects, not just the most “relevant” duration. Then format the duration you like (choose days in this case) using prettyTime.format(Duration duration)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Comments are closed.
Get updates from OCPSoft
If you find our tools useful, please consider making a donation to help us stay online and building software!