No, not H.G. Welles' book, but another use of Calvin's cardboard box. Used by stepping into the box from the top. Heading into the past or future is determined by which direction the passengers are facing.
Calvin and Hobbes travel back to the dinosaurs twice, since they forgot to bring a camera along the first time.