I have a date stored in a NSString in the following format: 2011-02-20 14:04:25
I need a function that will:
Take the current time and subtract the given time from it.
If the result is less than seconds then display it as X seconds ago.
if the result is less than an hour display it as X minutes ago.
if the result is less than a day display it as X hours ago
all other results should be returned as X days ago.
P.S. I have it up on craigslist as i'm also willing to pay.
link:
Objective C - Date function
thanks