find total months passed between two ActiveSupport::TimeWithZone objects


=> ActiveSupport::TimeWithZone

=> ActiveSupport::TimeWithZone - unit.created_at

=> 47709736.32316899

I think that’s the number of seconds that have passed between when the unit was created and the current time. Is this correct? If so, is there any easier way to find the total months that passed between two time objects like this?

( - unit.created_at) / 1.month, perhaps?

–Matt Jones