Added some methods for working with time.