Datetime format helper

What I currently have is Time::DATE_FORMATS[:date_with_hour] = “%b-%d-%Y
%H:%M %z”. What I’m trying to do is “3 hours, 19 minutes ago” after 24
hours, 1 day ago, 2 days ago" I cannot find the chart that has the
regular expression patterns listed for the DateTime class object.

David W. wrote in post #1182232:

What I currently have is Time::DATE_FORMATS[:date_with_hour] = “%b-%d-%Y
%H:%M %z”. What I’m trying to do is “3 hours, 19 minutes ago” after 24
hours, 1 day ago, 2 days ago" I cannot find the chart that has the
regular expression patterns listed for the DateTime class object.

I used timeago.js to do it in a much cleaner way on the client side.
Thanks anyway. [PROBLEM-SOLVED]