This also confused me.
The difference between the days is always an integer, so why express it as rational?
This is because it is the same return type that is used to express the difference between Date and DateTime or two DateTime. Thus, you can express the difference between two points.
I personally am not sure if this is the best choice, for example:
Time.now.to_datetime-Date.today
returns:
=> (44150896597/86400000000)
I think it was clearer:
=> 0.5110978639814815
tomsoft
source share