Add time utility functions.
Use utility function to handle time.