Re: How I can get date string, when date ago is mayor to n days?

Splash Forums PrettyTime Users How I can get date string, when date ago is mayor to n days? Re: How I can get date string, when date ago is mayor to n days?

#21082

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)