def time_to_number(self, time):
if not isinstance(time, datetime.time):<EOL><INDENT>raise TypeError(time)<EOL><DEDENT>return ((time.second / <NUM_LIT> + time.minute) / <NUM_LIT> + time.hour) / <NUM_LIT><EOL>
Converts a time instance to a corresponding float value.