Generally speaking, time is constant according to the observer. Two things can alter that: travelling near to or at the speed of light, and immense gravity.
I would suggest you read Prof Hawking's "A Brief History of Time" where he explains this properly.