Flight of the Navigator is pretty much like that.
Davey is told that his parents reported the young boy missing in 1978, the evening that he went searching in the woods for his younger brother, referring to the incident in the past tense because it is 1985. Only Davey is still exactly the same age and everything he was from 1978, while time has passed for everyone else. His little brother is now his big brother (Matt Adler). His parents are old. Everyone is confused and the scientific world find the situation fascinating.
The scientists turn Davey into their personal guinea pig, running tests and probing him and soon they discover that Davey was abducted. Davey breaks loose, and hops aboard the spaceship that took him through time before. While it is an escape from the scientists and their security, it also holds the answers to what happened to him. It is also an opportunity for Davey to learn everything from this spaceship. The spaceship is essentially controlled by Max, which is like it's CPU, a CPU with a cool sense of humor who likewise tries to learn about human emotions and condition from its passenger, Davey.