From: wannes Date: 2005-02-18T02:14:58+09:00 Subject: Re: 2/24 = 0?; or, how do I add hours to a DateTime? rpardee@comcast.net wrote: > Hey All, > But it seems that 2 divided by 24 (which is what I intend by '2/24') is > evaluating to zero, so my code never runs. What am I missing? an integer divided by an integer gives you an integer you could rplace it with 2.0/24 irb(main):001:0> 2/24 => 0 irb(main):002:0> 2.0/24 => 0.0833333333333333 > BTW--I was disappointed not to find an add_hours() method on DateTime. > Did I just miss it, or is it really not there? Don't know about that ;) grtz, wannes