search for: to_datetim

Displaying 3 results from an estimated 3 matches for "to_datetim".

Did you mean: to_datetime
2009 Feb 04
4
Rails 2.2.2 to_date and to_datetime methods
In the console I see this behaviour: >> "19270412000000".to_date.methods => ["ns?", "mon", "ago", "end_of_month", "months_since", "default_inspect", "minus_without_duration", ... >> "19270412000000".to_date.class => Date >> "19270412000000".class => String >>
2010 Jul 08
3
Testing equality
Hello How can I test equality with two objects when they include some attribute that is BigDecimal? if I make something like this: it "should ...whatever" do obj = Factory.create(:my_object) ... MyObject.first.should == obj end. FAILS This fails because the object expected is different from the object gotten, and the only difference are the BigDecimal attributes, that are
2010 Nov 27
6
invalid date
Hi!! Somebody knows why throws me an exception?? invalid date C:/Ruby/lib/ruby/1.8/date.rb:1482:in `civil'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/ core_ext/string/conversions.rb:23:in `to_datetime'' C:/Ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/datatypes.rb: 579:in `screen_data'' C:/Ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/datatypes.rb: 141:in `set'' C:/Ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/datatypes.rb: 158:in `init'' C:/Ruby/lib/rub...