[Django] #12194: PROPOSAL: Add a time difference filter to django.contrib.humanize

View: New views
2 Messages — Rating Filter:   Alert me  

[Django] #12194: PROPOSAL: Add a time difference filter to django.contrib.humanize

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12194: PROPOSAL: Add a time difference filter to django.contrib.humanize
-----------------------------+----------------------------------------------
 Reporter:  stemmetje        |       Owner:  nobody    
   Status:  new              |   Milestone:  1.2      
Component:  Template system  |     Version:  SVN      
 Keywords:  filter humanize  |       Stage:  Unreviewed
Has_patch:  1                |  
-----------------------------+----------------------------------------------
 I propose we add a time difference filter to the filters available in
 django.contrib.humanize.  The filter would act on a given time, date or
 datetime object and compare it another time, date or datetime object or to
 datetime.datetime.now() if no argument is given.  The time difference
 between the two objects would then be expressed in a human-friendly manner
 such as 'about 1 minute' or 'about 1 month'.

--
Ticket URL: <http://code.djangoproject.com/ticket/12194>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #12194: PROPOSAL: Add a time difference filter to django.contrib.humanize

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12194: PROPOSAL: Add a time difference filter to django.contrib.humanize
--------------------------------------+-------------------------------------
          Reporter:  stemmetje        |         Owner:  nobody        
            Status:  closed           |     Milestone:  1.2            
         Component:  Template system  |       Version:  SVN            
        Resolution:  invalid          |      Keywords:  filter humanize
             Stage:  Unreviewed       |     Has_patch:  1              
        Needs_docs:  0                |   Needs_tests:  0              
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by ubernostrum):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 The `timesince` and `timeuntil` filters, already built in to Django,
 provide this functionality.

--
Ticket URL: <http://code.djangoproject.com/ticket/12194#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---