Display human readable time

Hi everyone.

Does anybody know a good plugin for displaying a human readable time.
I like the ones on github. Django also has this built in, but I can
not find it for rails. Can anybody tell me a good plugin for this?

Thank you for your help.

Kind regards,


http://twitter.com/scrum8

On 7 March 2010 09:19, Joshua P. [email protected] wrote:

Hi everyone.

Does anybody know a good plugin for displaying a human readable time.
I like the ones on github. Django also has this built in, but I can
not find it for rails. Can anybody tell me a good plugin for this?

Could you be a bit more explicit about exactly what you want to see?
strftime works for me but perhaps I misunderstand your requirement.

Colin

On Sun, 07 Mar 2010 17:46:40 +0800, Colin L. [email protected]
wrote:

Colin

I’m assuming the OP means something like this -
http://apidock.com/rails/ActionView/Helpers/DateHelper/time_ago_in_words

Simon

I’ve written a gem for this that’s also context-sensitive regarding
today’s
date, so it knows whether a post occurred this Monday or last Monday,
for
instance. It extends ActiveSupport::TimeWithZone, so it works with your
ActiveRecord objects out of the box.

Cheers,
Brett

Hi Simon,

You got that right. That is exactly what I am looking for. I should
have looked in ActionPack before asking next time.

Thanks for your help.

Kind regards,