abhidsm/time_diff — Issue #3: Time.diff gives wrong answer for leap years
Author: alikhajeh1
Created: 2012-03-02 00:26:00+00:00
State: open

> Time.now
=> 2012-03-02 00:22:04 +0000
> Time.diff(Time.now, Time.now+10.years)
=> {:year=>9, :month=>12, :week=>0, :day=>4, :hour=>18, :minute=>0, :second=>0, :diff=>"9 years, 12 months, 4 days and 18:00:00"}

9 years, 12 months and 4 days is clearly wrong. It should be 10 years.