Re: 5 minutes is default minimum duration?

Splash Forums PrettyTime Users 5 minutes is default minimum duration? Re: 5 minutes is default minimum duration?

#22876

Toldmeego
Member

Your response was extremely fast. No worries.

Thanks a TON!

Missing a trailing parenthesis in the if.

Works.

PrettyTime p = new PrettyTime();
List<TimeUnit> units = new ArrayList<TimeUnit>();
for( TimeUnit t : p.getUnits() ) {
if(!(t instanceof JustNow)) {
units.add(t);
}
}
p.setUnits(units);

I owe you a paypal donation :)