Is there a plugin or built in function for converting a date interval
into the English equivalent? For example, “So and so posted this 45
minutes ago”.
Nathan P. Verni wrote:
Is there a plugin or built in function for converting a date interval
into the English equivalent? For example, ?So and so posted this 45
minutes ago?.
The helper function time_ago_in_words does this.
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000467
–
Philip R.
http://tzinfo.rubyforge.org/ – DST-aware timezone library for Ruby