require 'date'
a = (Date.new(1991,7,7)...Date.today).to_a.length #=>6441
b = (Date.new(2003,9,3)...Date.today).to_a.length #=>2000
b/a #=>0.310510790249961
a = (Date.new(1991,7,7)...Date.today).to_a.length #=>6441
b = (Date.new(2003,9,3)...Date.today).to_a.length #=>2000
b/a #=>0.310510790249961
回复Comments
作者:
{commentrecontent}