According to Einstein's theory of relativity, time is not constant but is relative and can be affected by gravity and speed.