docs: def time_to_number(self, time):
          """
          Converts a time instance to a corresponding float value.
          """
          if not isinstance(time, datetime.time):
              raise TypeError(time)
          return ((time.second / 60.0 + time.minute) / 60.0 + time.hour) / 24.0