Extra Credit

time_difference

TimeDifference is the missing Ruby method to calculate difference between two given time. You can do a Ruby time difference in year, month,

$gem install time_difference

Official docs outline

Extra Credit builds an outline of time_difference's docs the first time your work uses it. Until then, start at the official documentation.

All 3,925