Added some features to the class Time