Rails: distance_of_time_NOT_in_words

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-03-12T03:03:04Z Indexed on 2010/03/12 3:07 UTC
Read the original article Hit count: 190

Filed under:

As in, distance_of_time(Time.now, Time.tomorrow).days = 1 or something along those lines? If not, what would be a good way to achieve this? I know there is "from_now" but why wouldn't there be a from_whenever?

© Stack Overflow or respective owner

Related posts about ruby-on-rails