Time in Classical and Relativistic Physics