ts wrote:
> Warning you can have a problem
> See that t is a Time object and not a MyTime object.

Thanks. You are correct. Fortunately, that is 
easily fixed:

class MyTime < Time
        def MyTime.createFloor
                t = Time.new
                return MyTime.at(t.to_i() - 
t.sec)
        end
        def toto
           puts "toto"
        end
end
t = MyTime.createFloor
p t.inspect
p t.type
t.toto

Kevin