From: Kevin Smith Date: 2001-02-23T12:28:30+09:00 Subject: [ruby-talk:11361] Re: Time without seconds... DaVinci wrote: > I want to get a Time instance without seconds (round minutes). I have > probed next class: It's not terribly pretty, but this works: class MyTime < Time def MyTime.createFloor t = Time.new return Time.at(t.to_i() - t.sec) end end t = MyTime.createFloor p t.inspect Kevin