I've got rss feed items in this format:
"Fri, 22 Jul 2011 22:01:10 +0000"
Now I need to check if items in a feed are older than a certain number of days.
Does anyone have a good suggestion how might I convert a date in that format to Epoch time or something useful to do calculations on?
I wrote a little function to convert that date format to:
Friday, July 22, 2011
and I have a function that will tell me what the date was 7 days earlier than today:
Monday, July 18, 2011
What I need to know is how to tell that
Fri, 08 Apr 2011 19:00:25 +0000
is outside the range of 7 days and so exclude it from the list.
Alternatively, any wordpress guru's who know what, if any http parameters let you limit an rss feed to the last 7 days might be an even better solution...
Maybe I just need some sleep, but I'm blanking on this one.
- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!