Accepts input and displays time