Feature Request #28
Get items by date range
| Status: | New | Start: | 2008-02-05 | |
| Priority: | Low | Due date: | ||
| Assigned to: | Ryan Parman | % Done: | 0% |
|
| Category: | Data Access | |||
| Target version: | 1.3 | |||
Description
We should be able to get items in a date range. This should, for the sake of consistency, take two parameters which are both the number of seconds since the epoch (i.e., $start, $end; or maybe $start, $duration).
History
Updated by Ryan Parman 875 days ago
- Assigned to set to Ryan Parman
This is a really good idea. I'm thinking something like SimplePie::get_items_by_date_range($start, $duration, $use_strtotime = false), where $use_strtotime determines whether the date values passed in should be passed through strtotime(). This way, people can do stuff like $feed->get_items_by_date_range('2008-01-01', '7 days', true). I'm open to suggestions as to whether this would be the easiest way to use this.
Updated by Geoffrey Sneddon 875 days ago
That's probably sensible. It would allow things like SimplePie::get_items_by_date_range('now', '-10 days', true);.
Updated by Geoffrey Sneddon 780 days ago
- Status changed from Unconfirmed to New
Updated by Geoffrey Sneddon 429 days ago
- Target version changed from 1.2 to 1.3