code: def prepare_time_micros(data, schema):
      
      if isinstance(data, datetime.time):
          return long(data.hour * MCS_PER_HOUR + data.minute * MCS_PER_MINUTE
                      + data.second * MCS_PER_SECOND + data.microsecond)
      else:
          return data
docs: Convert datetime.time to int timestamp with microseconds