From: Bill Kelly Date: 2004-04-11T08:16:50+09:00 Subject: Re: Time upper limit Hi, From: "xor" > And how does one goes about representing the year 2050 in Ruby? The date class might be more what you're looking for? irb --simple-prompt >> require 'date' => true >> d = Date.parse "2050-04-10" => # >> d.to_s => "2050-04-10" >> d.day => 10 >> d.month => 4 >> d.year => 2050 >> d.strftime "%a/%A, %b/%B, %c" => "Sun/Sunday, Apr/April, Sun Apr 10 00:00:00 2050" You can also get "seconds since Unix epoch" from a date object like: >> Date.parse("2004-04-10").strftime "%s" => "1081555200" >> Time.at(1081555200).utc => Sat Apr 10 00:00:00 UTC 2004 Hope this helps, Bill