require 'date'd1 = Date.new(2000, 1, 1)d2 = Date.new(2010, 1, 1)p d1.year()p d2.year()p Date.today()
Standard input is empty
2000 2010 #<Date: 2015-07-28 ((2457232j,0s,0n),+0s,2299161j)>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!