Opened 16 years ago
Closed 16 years ago
#8423 closed (duplicate)
Implement time filters
Reported by: | Vincent Foley | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | datetime filter hour minute second | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
As of r8442, it is possible to filter a queryset by year, month or day using the usual syntax:
Event.objects.filter(start_time__year=2008) Article.objects.filter(pub_date__month=11, pub_date__day=3)
However, filters for hours, minutes and seconds were missing. I have added those in a patch for your consideration along with unit tests and documentation.
Note:
See TracTickets
for help on using tickets.
Duplicate of #8424
Closing this because of availability of a patch in the other one.