error checking added for the time converter