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,
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
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,
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