Thanks Philip!
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Philip Ross
Sent: Tuesday, August 01, 2006 3:58 PM
To: rails@lists.rubyonrails.org
Subject: [Rails] Re: Date length in english plugin/built in?
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#M0
00467
--
Philip Ross
http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails