time functions and styles