2009/02/23 | My 2000th Day
类别(有人看得懂有人看不懂) | 评论(0) | 阅读(14) | 发表于 18:54
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
0

评论Comments