Hi there,
how can I convert something like...
future_datetime - past_datetime (which results in a float)
into something like...
"21 days, 2 hours, 53 minutes, 1 seconds" ?
Does RoR have any nifty helper for this ?
Not that I know of, but there's examples out there...
http://www.google.com/search?q=rails+seconds+to+hours+minutes
This one seems to have the days bit...
http://stufftohelpyouout.blogspot.com/2010/02/seconds-to-days-minutes-hours-seconds.html
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.