Date length in english plugin/built in?

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs