although time travel has been a shared plot device in science fiction since the late 19th century and the ideas of special and general relativity allow methods for forms of one-way travel into the future via time dilation .