time: settimeofday: Validate the values of tv from user