def _datetime_to_epoch(self, datetime, time_precision='s'):
        seconds = (datetime - self.EPOCH).total_seconds()
        if time_precision == 's':
            return seconds
        elif time_precision == 'm' or time_precision == 'ms':
            return seconds * 1000
        elif time_precision == 'u':
            return seconds * 1000000
dataset/ETHPy150Open influxdata/influxdb-python/influxdb/influxdb08/dataframe_client.py/DataFrameClient._datetime_to_epoch/original