In a Rails project I want to find the difference between two dates and then display it in natural language. Something like
>> (date1 - date2).to_natur
distance_of_time_in_words is the most accurate here. Daniel's answer is actully wrong: 2.5 years ago should produce exactly 2 years, 6 months. The issue is that months contain 28-31 day, and years might be leap.
distance_of_time_in_words
I wish I knew how to fix this :(