I have a feed of items displayed in table cells, part of which is a date / timestamp in the past.
In Objective-C, how can I accomplish formatting them in the same manner as the jquery.timeago plugin on the web?
That is, taking in a date and outputting things like:
- 'just now'
- '2 minutes ago'
- '24 days ago'
- 'a month ago'
I see there is an NSDate extension class here with methods such as dateWithDaysBeforeNow, dateWithMinutesBeforeNow, etc, but if there is a library out there that has already done this I will use it.
EDIT: Further to this, if someone composes a method (takes a date, returns a string) that accomplishes this, either with this linked extensions library or another method, I will award them the answer.
EDIT 2 Bounty goes to whoever can write the fuzzy date algorithm in Objective-C.