Is there a way to get time ago in words in rubymotion such that when I have a date I can get the 2 days ago
5 days ago
etc. from the current date? like its possible to do in rails.
The date format I am getting from mysql database is TIMESTAMP and the returned data is like this:
2014-05-17 22:59:07
2011-05-17 22:56:02
Question
How can I convert the above string to NSDate and then compare it to today's date and get "X days ago" etc...