I’m using an API where the date returned looks something like: 2012-11-30 12:54:59 -0800. I was wondering if there is a Ruby method that can take that as input and return “Today”, for example.
Other preferred output would be things like “About an hour ago”, “Just now”, “a month ago”.
I’m using Sinatra.
There’s the Kronic gem: