From: tadayoshi funaba Date: 2011-06-09T08:38:35+09:00 Subject: [ruby-core:36867] [Ruby 1.8 - Feature #4644] DateTime.new does not work with Float Issue #4644 has been updated by tadayoshi funaba. Assignee set to tadayoshi funaba ---------------------------------------- Feature #4644: DateTime.new does not work with Float http://redmine.ruby-lang.org/issues/4644 Author: Stefan Radomski Status: Open Priority: Normal Assignee: tadayoshi funaba Category: lib Target version: When initializing a DateTime object, one can pass seconds as Floats, like 5.5. The decimals get added to sec_fraction. This works great in Ruby 1.9, but not in 1.8. It fails in Line 527 of the "date.rb":http://redmine.ruby-lang.org/projects/ruby-18/repository/entry/lib/date.rb#L527 with the message "NoMethodError: undefined method `to_r' for 7325.5:Float". -- http://redmine.ruby-lang.org