H. G. Wells' The Time Machine, from 1895, popularized the idea of a vehicle that allows its user to travel intentionally and selectively across time, and indeed
A science fiction novella by H. G. Wells, published in 1895. It is generally credited with the popularisation of the concept of time travel by using a vehicle t