Ticket #1052: timesince_weeks.diff
File timesince_weeks.diff, 609 bytes (added by , 19 years ago) |
---|
-
django/utils/timesince.py
11 11 chunks = ( 12 12 (60 * 60 * 24 * 365, lambda n: ngettext('year', 'years', n)), 13 13 (60 * 60 * 24 * 30, lambda n: ngettext('month', 'months', n)), 14 (60 * 60 * 24 * 7, lambda n : ngettext('week', 'weeks', n)), 14 15 (60 * 60 * 24, lambda n : ngettext('day', 'days', n)), 15 16 (60 * 60, lambda n: ngettext('hour', 'hours', n)), 16 17 (60, lambda n: ngettext('minute', 'minutes', n))