# How many Days, hours, minutes ago?

**URL:** <https://www.ruby-forum.com/t/how-many-days-hours-minutes-ago/114585>\
**Category:** Rails\
**Created:** [September 16, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/how-many-days-hours-minutes-ago/114585 "2007-09-16T16:24:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharkie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Post date:** [September 16, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/how-many-days-hours-minutes-ago/114585/1 "2007-09-16T16:24:54Z")

</div>

Is there a plugin or library that can output that information already?  
How would I also translate that into a non-English language?

Is this something that’s already available in Ruby or Rails?

---

<div class="post-metadata">

**Author:** ![sharkie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Post date:** [September 16, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/how-many-days-hours-minutes-ago/114585/2 "2007-09-16T16:42:53Z")

</div>

Sharkie L. wrote:

> Is there a plugin or library that can output that information already?  
> How would I also translate that into a non-English language?
> 
> Is this something that’s already available in Ruby or Rails?

time\_ago\_in\_words(from\_time, include\_seconds = false)

---

<div class="post-metadata">

**Author:** ![sharkie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Post date:** [September 17, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/how-many-days-hours-minutes-ago/114585/3 "2007-09-17T13:23:50Z")

</div>

Sharkie L. schrieb:

> Is there a plugin or library that can output that information already?  
> How would I also translate that into a non-English language?
> 
> Is this something that’s already available in Ruby or Rails?

Take a look at

[http://chronic.rubyforge.org/](http://chronic.rubyforge.org/)

–  
Jochen K.  
[railswerk.de](http://railswerk.de), [gissmoh.de](http://gissmoh.de), [figgfrosch.de](http://figgfrosch.de), [ror-ror.de](http://ror-ror.de)
