How to form "fuzzy date" in Ruby?

datetime, ruby

Solution

Rails gives your views a helper function called `time_ago_in_words` that you can call to output just such a format from a `Time` object.

Problem

How do I form "fuzzy" date/time from RFC 2822 formatted (Sat, 18 Jul 2009 10:57:43 +0300) timestamp? With fuzzy date I mean like: "5 minutes ago", "2 days, 15 minutes ago".

Original source