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