> (Date.new(2010, 1, 3) - Date.today).days
=> 72 days # My birthday!

But I want:
=> 2 months and 11 days

Is there a built in activesupport way to do this? I guess I want to 
normalize a date range.

xav

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to