Changeset 1374
- Timestamp:
- 11/23/05 15:13:00 (2 years ago)
- Files:
-
- django/trunk/django/utils/timesince.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/timesince.py
r1359 r1374 1 import datetime, time1 import datetime, math, time 2 2 from django.utils.tzinfo import LocalTimezone 3 3 from django.utils.translation import ngettext … … 31 31 if count != 0: 32 32 break 33 if count < 0: 34 return '%d milliseconds' % math.floor(delta.microseconds / 1000) 33 35 s = '%d %s' % (count, name(count)) 34 36 if i + 1 < len(chunks):
