Changeset 3117
- Timestamp:
- 06/10/06 19:33:44 (2 years ago)
- Files:
-
- django/trunk/django/template/defaultfilters.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/defaultfilters.py
r2927 r3117 331 331 "Formats a date according to the given format" 332 332 from django.utils.dateformat import format 333 if not value: 334 return '' 333 335 if arg is None: 334 336 arg = settings.DATE_FORMAT … … 338 340 "Formats a time according to the given format" 339 341 from django.utils.dateformat import time_format 342 if not value: 343 return '' 340 344 if arg is None: 341 345 arg = settings.TIME_FORMAT … … 345 349 'Formats a date as the time since that date (i.e. "4 days, 6 hours")' 346 350 from django.utils.timesince import timesince 351 if not value: 352 return '' 347 353 return timesince(value) 348 354
