EllisLab/CodeIgniter — pull request #1165 by junap (2012-03-11 12:00:55+00:00)
Title: Make timespan() helper show fuzzier periods if required

Adds an extra optional parameter to the timespan function in Date helper that returns only part of the period, depending on how long ago the date is.

eg.

1 year, 1 day
3 months, 1 week, 3 hours
4 months, 5 days