The concept of time travel was first conceived in the 9th century BCE in the Hindu book, The Mahabharata. It explored basic themes of time travel, wherein a human embarks on a one-way trip through time. Another notable work emerges in the modern world, dating back to 1895, in H.G. Wells's book "The Time Machine." It also delves into the theme of time travel with one key difference: time is considered a dimension. However, this concept was not widely accepted at the time, as Einstein's theories had not yet emerged.
This theme of time travel is further explored in subsequent writings, such as Henri Bergson's "Time And Free Will," "Time Capsule," Robert A Heinlein's "By His Bootstraps," and William Gibson's "The Peripheral."
Time travel was indeed addressed in Einstein's theory of relativity. According to the theory, when an object is influenced by gravity or moves at high speeds, it experiences time dilation. Time dilation refers to the phenomenon where one object experiences time passing at a different rate compared to another. An illustrative example of time dilation is when one person's age increases faster than another due to their relative velocities. Scientists have hypothesized that if a human were to travel at the speed of light, a noticeable time difference would occur, potentially allowing them to travel forward in time.
This is an example of time dilation mathematically. We can use the equation: t' = t/(1 - v^2/c^2)^(1/2) to calculate the time dilation one will feel. For instance, if we assume a rocket travels at half the speed of light, using the equation, we can calculate that the time dilation would be 1.154 outside the rocket.