From: Peter Weldon Date: 2010-12-30T04:34:22+09:00 Subject: [ruby-core:34000] [Ruby 1.9-Bug#4221] Unexpected result of Time#strftime("%s") on Windows with trunk Issue #4221 has been updated by Peter Weldon. Most likely an overflow bug: irb(main):001:0> Time.at(2**31 - 1).strftime('%s') => "2147483647" irb(main):002:0> Time.at(2**31).strftime('%s') => "./,),(-*,(" irb(main):003:0> Time.at(2**32).strftime('%s') => "0" irb(main):004:0> Time.at(2**32 + 1).strftime('%s') => "1" ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4221 ---------------------------------------- http://redmine.ruby-lang.org