How do I convert RSS feed timestamps to relative timestamps or "time ago", for example: "12 minutes ago?"
I've got a bunch of aggregated RSS feeds, and I would like to display relative timestamps - "timeago", "timesince" or "fuzzy time", it seems there are many names for it - in the HTML output, like
Recent Activity does for registered Mefi users.
Here's an example (self-link). Those of you who have seen Electicker will note that the site
already does this (self-link), but those feeds are run through Feeddigest and I'd like to move the legwork to my own server (if only for the more frequent updates).
Do any of you know about an elegant way to do this, preferably in PHP or even Yahoo! Pipes? Note that I will want to do this for a whole bunch of feeds from various sources and native timezones, so I'm guessing there will need to be some timezone conversion (to UTC or something) involved.
Thanks in advance!
posted by smackfu at 9:44 AM on February 1, 2008