What I am searching for is a Cocoa (or third party) class that can display time intervals in natural language, e.g.:
- 10 seconds ago
- 1 hour ago
- 2 days ago
Do you know anything that could help me to achieve this task without writing it by myself and melting in if-else hell?
The one I’ve originally pointed to does not seem to be there anymore but as pointed out there is NSDate-TimeAgo, I haven’t tried it but looks good to me.
EDIT: updated answer to point to existing code