Forum: Ruby on Rails Dubious Date Conversion - newbie needs help

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
39025a7f572d6fe464e1fe6be399ca3b?d=identicon&s=25 Mike Dershowitz (mdersh53)
on 2007-02-18 18:35

<%=h ( - task.created_on) %><br />

is what I've got in my view, pretty simple.  It yields a floating point
number.  Trick is - how do I convert that to what I want?  I search and
searched and didn't find any help becuase it's floating point.

What I what is to be able to display in Days, hours, seconds format.
So, it should ready:

14 days, 10 hours, 32 seconds ago.

I also tried strftime and it didn't work becuase it was floating point.
Or it didn't work becuase of the way I was using it.

Thanks so much in advance for your help!

This topic is locked and can not be replied to.