summaryrefslogtreecommitdiff
path: root/django/utils/timesince.py
AgeCommit message (Collapse)Author
2015-06-04Fixed #19210 -- Added leap year support to django.utils.timesince()Raphael Michel
2015-03-04Moved definition of chunks out of timesince function.Benjamin Wohlwend
This speeds up the timesince function/filter substantially.
2013-11-02Correct flake8 E302 violationsRay Ashman Jr
2013-07-07Fixed #20711 -- Fixed broken link in timesince.py docstringSusanTan
2013-05-18Fixed #20246 -- Added non-breaking spaces between values an unitsEmil Stenström
2013-02-06Fixed #19704 -- Make use of new ungettext_lazy function at appropriate placesAlexey Boriskin
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-03-22Fixed #17937 -- Avoided an error in the timeuntil filter when it receives a ↵Aymeric Augustin
date object. Thanks Dmitry Guyvoronsky for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #9065 -- Fixed the `timesince` and `timeuntil` template tags to work ↵Gary Wilson Jr
when both values involved are date objects, thanks to morty and mboersma for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8637: fixed timeuntil and date values.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Fixed #7201 -- Fixed the timeuntil filter to work correctly with timezone-awareMalcolm Tredinnick
times. Patch from Jeremy Carbaugh. This is backwards incompatible in the sense that previously, if you tried to compare timezone-aware and timezone-naive values, you got an incorrect result. Now you get an empty string. So your previously incorrect code returns a different incorrect result. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-17Removed unused import.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-17Fixed #2675 -- Changed the `timeuntil` and `timesince` template filters to ↵Gary Wilson Jr
display "0 minutes" when passed a past or future date respectively instead of "-1 years, 12 months". Thanks to nickefford for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12Fixed #4768 -- Converted timesince and dateformat to use explicit floor ↵Russell Keith-Magee
division (pre-emptive avoidance of Python 3000 compatibility problem), and removed a redundant millisecond check. Thanks, John Shaffer <jshaffer2112@gmail.com>. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-25Fixed #4137 -- Added translation markup to a couple of missed strings. Thanks,Malcolm Tredinnick
Sung-Jin Hong. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2163 -- Corrected typo when handling datetimes with timezones in the ↵Malcolm Tredinnick
timesince filter. Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2053 -- added an optional comparison argument to the "timesince" filter.Malcolm Tredinnick
Added a "timeuntil" filter that works analogously. Thanks, john@sneeu.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23Fixed #1385 -- Allowed timesince filter to accept datetime.date objects. ↵Adrian Holovaty
Thanks, Matt git-svn-id: http://code.djangoproject.com/svn/django/trunk@2375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-01Fixed #1145 -- Added unit tests for default template filters and fixed two ↵Adrian Holovaty
bugs in filters. Thanks, Luke Plant git-svn-id: http://code.djangoproject.com/svn/django/trunk@1811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Fixed #977 -- Fixed timesince() utility. Thanks, pgross@thoughtworks.comAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23Fixed #886 -- timesince utility now supports microseconds. Thanks, Aaron SwartzAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22added translation hooks to timesince and updated message files to reflect ↵Georg Bauer
them (and updated the 'de' translation). Additionally some smallish code changes to timesince (that weird zip thingy was just scary - and there is no need to .floor an integer division) git-svn-id: http://code.djangoproject.com/svn/django/trunk@1359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22Fixed #479 -- Implemented time-zone formats in dateformat. Thanks, SuneAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37