Backported from Ruby 1.9.
14 15 16
# File 'lib/vanity/backport.rb', line 14 def to_date self end
21 22 23
# File 'lib/vanity/backport.rb', line 21 def to_time Time.local(year, mon, mday) end