This question already has an answer here:
- Time travel in Hindu scripture 4 answers
There are some instances which show relative comparisons of time on different lokas. For example, Brahma took the cowherd boys who were with Krishna to Brahma loka and came back in a moment, but by that time 1 year had passed away on earth.
But I've never heard of any instances of time travelling in Hinduism. Are there any such instances in any Hindu scriptures where a person/demigod might have gone into the future or past to perform a certain task.