#18049: time lookup missng
----------------------------------------------+-------------------------
     Reporter:  g00fy.box@…                   |      Owner:  nobody
         Type:  New feature                   |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  SVN
     Severity:  Normal                        |   Keywords:  time lookup
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+-------------------------
 there is day, month, year lookup ,but time lookup is missing

 Example of use:


 {{{
 # lets search for events that start after 2 PM
 Event.objects.filter(start__time__gte=datetime.now())

 }}}

 SQL equivalent:


 {{{
 SELECT ... WHERE EXTRACT('time' FROM pub_date) >= '14:00:00';
 }}}




 Note:
 Splitting datetime fields into two date & time fields sometimes makes no
 sense, and makes other stuff harder

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18049>
Django <https://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@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to