Does Buddhist's Time Dilation have something to do with Physics's Time Dilation? I've just seen Interstellar. And they say 1 year on the planet is equal to 7 years on earth. because it sounds familiar to the Buddhist text I used to read ,if they both refer to the same thing, how did the ancient people know it?
Time dilation due to special relativity happens because the speed of light is constant and is expressed using equations which include the Lorentz factor.

Time dilation due to gravitation is a related concept.

Assuming that "time dilation" is a concept in Buddhism, have you evidence that the theoretical/conceptual cause of that dilation is the speed of light being constant being all frames of reference, or, the acceleration of frames of reference e.g. due to gravity? Do Buddhist scriptures (mathematical equations) mention the Lorentz factor, somewhere? If the answer is "no" then I suggest that "they both refer to the same thing" is false, i.e. that Buddhism's "time dilation" and Physics' "time dilation" actually refer to different concepts.

I don't want to say that Buddhism in't helpful towards understanding Physics; but it was my experience that my learning Physics wasn't much help towards understanding Buddhism.

Working with, studying or applying Physics might count as a form of "right livelihood" in Buddhism.

I think it would be missing the point of Buddhism to see it as a way to get miraculous leaning/knowledge/insight/invention of the detailed models of (i.e. the hypotheses or theorems about) the universe which are used by physicists, chemists, biologists, engineers, doctors, etc.

If you read from the Pali canon for example then the Buddha is talking about something else entirely.