Is it possible to get babel.dates.format_timedelta to show only the whole number of units passed, rather than round to the nearest? That is, I want 47 hours to appear as "1 day" and 48 hours as "2 days"
However, I can only get it to work like this: >>> format_timedelta(timedelta(hours=48), threshold=1) u'2 days' >>> format_timedelta(timedelta(hours=47), threshold=1) u'2 days' >>> format_timedelta(timedelta(hours=36), threshold=1) u'2 days' >>> format_timedelta(timedelta(hours=35), threshold=1) u'1 day' Thanks, Brian. -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pocoo-libs. For more options, visit https://groups.google.com/d/optout.
